Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conversion problem from VFP 6 to VFP 9
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01027216
Message ID:
01027410
Vues:
25
>>A piece of code that we have in our VFP 5 & 6 (works fine) build reads:
>>
>>form A
>>public dime allheaders[45,3]
>>do form B
>>
>>form B
>>external array allheaders
>>
>>generates and error when we try to build it in VFP 9
>>"unknown allheaders - undefined"
>>
>>Can anyone help?
>
>You can pass array as parameter or make it a property of _SCREEN. It's not a good idea to use global variables anyway.
LOCAL allheaders[45,3]
>do form B WITH @allheaders
>* or
>_SCREEN.Addproperty("allheaders[45,3]")
>
Thanks for the input, Sergey.

We changed

public dime
to
public array

and it all worked.

Regarding Public Variables, that is a whole 'nother discussion.
This particular code piece was moved from our DOS version written in 1988.
We cannot change that part at this time.
Glenn
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform