Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Naming conventions for custom methods?
Message
From
19/11/2008 03:14:17
 
 
To
18/11/2008 12:21:21
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01362229
Message ID:
01362769
Views:
28
>I agree, but you don't need to assign a value to MyString when you declare it. You can do it later in the code. I don't really see a difference between string and var here. In either case, you're not going to just define the variable. You're always going to assign a value and use it someplace.
>
>>Try to compile
>>
>>var MyString;  // it won't
>>
>>
>>but this will
>>
>>var MyString = "";
>>
>>
>>In other words, if the compiler cannot 'derive' the type, it won't compile
>>
>>update: http://msdn.microsoft.com/en-us/library/bb384061.aspx
>>
>>

Craig,

Can you

either provide some code where you declare a variable with 'var' without initializing it, that will compile

or retract your statement
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform