PDA

Click to See Complete Forum and Search --> : Cander's VB .NET Tips conitinued :P


Cander
Aug 13th, 2002, 12:29 PM
Here is one for you. Suppose for some reason you need to use a reserved VB/.NET keyword or function name as a variable name. For isntance

Dim String As Integer

That will normally bring up a compile error. But lets say for some reason you need to use String as a variable name. How do you do it?
Use brackets

Dim [String] As Integer

and every time you need to access it, make sure you do so with the brackets

[String] = 50

PT Exorcist
Aug 13th, 2002, 08:58 PM
then i am not using the same keyword...u can put [] with other non-type words too...