Information générale
Catégorie:
Codage, syntaxe et commandes
Thanks, Josh. Both your suggestion and Nick's should solve the problem.
>Dave,
>
>You can create an array containing one row per field and use CREATE CURSOR FROM ARRAY aMyArray
>
>Check out the AFIELDS() command to see what the specs for the array are.
>
>>Hi all,
>>
>>I have a problem wherein I need to create a cursor for a form grid and the number of fields may be different with any given call to the form.
>>
>>I create the cursor and then load it with fields from several tables.
>>
>>The problem lay in the create cursor command where I need to specify the fields. On one occasion there may need to be 15 fields, but on another occasion only 10.
>>
>>Does anyone have an idea on how to create a cursor with varying number of fields?
>>
>>Perhaps I should just use a cursor with many fields and ignore those I don't need.
>>
>>TIA,
>>Dave
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement