Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create cursor error in VFP9SP1
Message
 
 
À
23/11/2006 02:29:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01171987
Message ID:
01172128
Vues:
13
Hi Daniel,

You can simplify your code and remove hardcoded array size by properly using ALEN() function
SELECT wk_equipment
=AFIELDS(Farray)
* Increase array size by one row preserving the # of columns 
DIMENSION Farray[ALEN(Farray,1)+1, ALEN(Farray,2)]
lnLastRow = ALEN(Farray,1)
Farray[lnLastRow,1]="PNAME1"
Farray[lnLastRow,2]="C"
Farray[lnLastRow,3]=45
Farray[lnLastRow,4]=0
Farray[lnLastRow,5]=.F.
Farray[lnLastRow,6]=.F.
...
>Hope someone can help me.
>I encountered a syntax error when run on VFP9SP1 but it worked fine on VFP7. Can anyone tell me what's wrong. It seemed I missed something. I intend to add another field into an existing table structure (wk_equipment) and create a cursor (cwk_equip) from it.
>
<snip>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform