[Gambas-devel] memo system and auto-captital function

Yizhou He yizhou_he at ...143...
Tue Aug 10 06:50:57 CEST 2004


Hi:

I know this is easy, but I can not find out where to add the code.

I hope Gambas can improve in two functions:
1. I notice if I typing endif it will automatically change to ENDIF, 
but when type in a variable or object name, it don't change them to uni-
form. For example:

Dim iLine as Integer
iline=3

I think it should automatically change iline to iLine. With this 
function, developers don't have to use shift that often, the caps will 
be changed as function, sub, object or variable defines. More 
importantly, if developer have typing mistake, it will not change 
automatically, and developer realize it right way. He doesn't have to 
wait until compile the project and find out he make a typing mistake.

2. For auto complete, it don't have memos about what this function for, 
if there are few sentence to explain what this function will do, what 
it return, what x means what y means. For example:

Public function Split(String as String, optional Separate as String, 
optional  Escape as String]) as String[] 'function Split will split a 
String by the separate inside the  string\n it returns a array, string 
between separates will be add in the array the function returns. For 
example \n Dim aTime as String[] \n aTime=split("11:13:50",":")\n the 
expression will return a string array aTime, and aTime[0]="11", aTime[1]
="13", aTime[2]="50"\n\n Split() only works with characters, and 
the 'Separator' argument is a list of splitting characters. Moreover, 
it ignores the UTF-8 encoding of the string.
...
END

When use auto complete it will display:
------------------------------------------------------------------------
----
Split(String as String, optional Separate as String, optional  Escape 
as String]) as String[] 
function Split will split a String by the separate inside the  string
it returns a array, string between separates will be add in the array 
the function returns. For example 
Dim aTime as String[] 
aTime=split("11:13:50",":")
the expression will return a string array aTime, and aTime[0]="11", 
aTime[1]="13", aTime[2]="50"

Split() only works with characters, and the 'Separator' argument is a 
list of splitting characters. Moreover, it ignores the UTF-8 encoding 
of the string.
------------------------------------------------------------------------
----

This will be very useful while many developer working on one project 
and writing components, control, libs, developer don't have to search 
document for how to use the function,sub,

3. Treeview control should add a memo or tip function so that when 
mouse move over a node will display a help or memo information for 
different node. The memo information should be input in "treeview.add" 
method.

4. Fproperty form should add a text control to display the memo about 
the selected property

The memo means tips help information, comments, anything can help 
developer or user to use Gambas and it's application.

Do I ask for too much?

Yizhou He







More information about the Devel mailing list