PDA

View Full Version : Help file: APP_ListUDTs



Petr Schreiber
29-06-2011, 20:18
Hi,

I think the description of topic:
thinBasic Modules > Core > Application functions > APP_ListKeywords

is not 100% precise. It says:


Returns a string containing the list of thinBasic UDTs declared at the time function is invoked. It means only UDTs of the current loaded modules will be returned.


... but that is not true. If I execute the following code:


Type tVector2D
x As Single
y As Single
End Type

Type tVector3D
tVector2D
z As Single
End Type

MsgBox 0, APP_ListUDTs($CRLF)


I get the output of:


TVECTOR2D
TVECTOR3D


... which means not only UDTs defined in loaded modules are listed, but the user defined ones as well.

Maybe the description could be formulated as:


Returns a string containing the list of thinBasic UDTs declared at the time function is invoked.
That means only the UDTs of the current loaded modules and UDTs defined by programmer will be returned.



Petr

ErosOlmi
29-06-2011, 21:37
Done, thanks.