Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Local iVar as integer = 0 won't
Message
From
31/10/2001 13:09:56
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Local iVar as integer = 0 won't
Miscellaneous
Thread ID:
00575755
Message ID:
00575755
Views:
46
Somewhere around here I think I saw something like
local cVariable as string = "some text"
and I think I saw this as a welcome change - i.e. a chance to declare and initialize a variable in a single command. Just tried
local i as integer = 0
and it compiled fine, didn't error out in runtime, but the value of i was .f., so it seems to ignore the assigned value. Help, of course, doesn't mention this, but it also has another error where it says it accepts ARRAY keyword (which it doesn't anymore, had to delete a bunch of these yesterday, it decides a variable is an array when it sees it with dimensions - much simpler, IMO).

OK, it doesn't work as I thought, but then what's the purpose of this? Is it just another "parser doesn't look behind this point" issue, as in the EndIf, EndScan and such commands (where you can put any text after the space after the command and it's treated as a comment), or does it have any use in intellisense, or what?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Next
Reply
Map
View

Click here to load this message in the networking platform