Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private declared in main program are not visible...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00514726
Message ID:
00514729
Vues:
10
This message has been marked as a message which has helped to the initial question of the thread.
>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.

Does a variable exist if it was never initialized?
Could it happen that SYS(2023) not return anything and the IIF never get back anything to set the variable to.

Also your Function Call Here is not showing up as it is being interpreted as HTML.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform