Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create Cursor form Array
Message
De
25/11/1998 10:58:18
 
 
À
25/11/1998 10:45:01
Rick Hawkins
Rose Valley Software Studio
Wallingford, Pennsylvanie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00161368
Message ID:
00161384
Vues:
19
>>>Hi All,
>>>
>>>I am having a problem converting a program from 2.6 to VisualFP. The code 'Create Cursor xxx from Array yyy' works just fine in 2.6, but it gave me the 'Syntax error' when I ran that program in 5.0
>>>
>>>Please help!!! Thanks a lot.
>>
>>It works Ok in VFP5. You may try it:
>>Select MyTable
>>=Afields(MyArray)
>>Create Cursor tmp From Array MyArray
>
>
>Edward,
>
>Here is my code:
>
> SELE du
> =AFIELDS(ladhdstru)
> lclen=ALEN(ladhdstru,1)+1
> DIME ladhdstru(lclen,4)
> ladhdstru(lclen,1)='hccode'
> ladhdstru(lclen,2)='C'
> ladhdstru(lclen,3)=4
> ladhdstru(lclen,4)=0
>
> CREATE CURSOR chkit FROM ARRAY ladhdstru
>
>I got the syntax error at the last line. What is the problem??
>
>Thanks

Afields() generates 16-column array in VFP5.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform