Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create cursor when no. of fields unknown
Message
 
To
07/05/1998 14:09:06
Dave Emerson
Dc Emerson Consult8Ng, Inc
Destin, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00097782
Message ID:
00097794
Views:
18
>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.

You can also use Alter Table to add columns to a cursor, if you start with one, for example...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform