Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrays and undefined error
Message
De
06/09/2005 13:11:47
 
 
À
06/09/2005 10:45:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
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:
01047012
Message ID:
01047077
Vues:
16
>>You need to trick the compiler. Sometimes it's enough to use these brackets: []
>>
>>but You will probably need the following section in the PRG that uses the array without defining it
>>
>>
>>if .T. and .F.
>>    define Results[39,2]
>>endif
>>
>
>Interesting workaround - but in this case, EXTERNAL ARRAY does seem simpler. And, I think it doesn't create an executable statement. (The IF will actually be evaluated, wasting a tiny fraction of a second.)

No, the compiler add a fully invertible bytecodes, and VFP execute it at runtime.
If ArrayList it declares solo variables
present in the code, then EXTERNAL add: 6 + 4*ArrayListCount bytes
EXTERNAL ARRAY XXXXXXXXXXXXXXXXXXXXXXXXX,ZZZZZ,xZZZZ	&& 6 + 4*ArrayListCount = 18 bytes
XXXXXXXXXXXXXXXXXXXXXXXXX[1]=3
ZZZZZ[2]=5
xZZZZ[2]=5
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform