Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create cursor error in VFP9SP1
Message
 
 
To
23/11/2006 02:29:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01171987
Message ID:
01172128
Views:
12
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform