Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Visual Basic
Expertise: Beginner
Aug 6, 1997



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Numeric Strings As Keys In A Treeview Control

To use numeric strings as keys in a treeview control, the keys must be strings containing a non-numeric character, not just digits. A handy workaround is to append the string "_" to the end of the string of digits, which you can now use as a key. Append to the end because you can use the Val() function to get the numeric value back out without doing any parsing.
A. Nicklas
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date