>I have a treeview control that receives A-Z and 0-9 as a key. The help defines key as string
(Optional. A unique string that can be used to retrieve the Node with the Item method.). When I pass a number (in quotes), it seems to think it is numeric and, even though it defines it as a string, throws an OLE Exception and crashes.
>Does anybody know how to force a number as a
string to an external procedure?
>
>TIA,
Nigel,
Apparently the Treeview control looks at the first character on the left of the string you pass in, kind of like the ISDIGIT() function in VFP. I prepend a "T" (for Treeview *g*) and use the record's unique number, which in this particular case is a series of increasing numerals. Since I could care less what that Key value is as I use the Index of each node for Parent/Children management this works out well.
Best,
DD
Best,
DD
A man is no fool who gives up that which he cannot keep for that which he cannot lose.
Everything I don't understand must be easy!
The difficulty of any task is measured by the capacity of the agent performing the work.