Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Private declared in main program are not visible...
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Private declared in main program are not visible...
Miscellaneous
Thread ID:
00514726
Message ID:
00514726
Views:
49
Hi everyone,

I have these lines at the top of main program of my application:

private pcTempDrive, FieldValPrefix, TableValPrefix && Make them visible everywhere in the project
pcTempDrive=justdrive(sys(2023)) && VFP Temp drive
FieldValPrefix ='IIF(VARTYPE(oValid)#"O".OR.Ovalid.nlocked<0,.F.,IIF(Ovalid.nlocked=0,.T.,))'
TableValPrefix ='IIF(VARTYPE(oValid)#"O".OR.Ovalid.nlocked<0,.F.,IIF(Ovalid.nlocked=0,.T.,))'

Main program calls form (do form ...), this form calls a function. In this function I got an error, that these variables are not defined. Could somebody give me a clue, why is what?

I can add a check, no problem, but just want to understand the reason for this behavior.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform