Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create Cursor from table structure
Message
 
To
02/08/2011 17:54:59
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01519977
Message ID:
01519982
Views:
57
>Anyone know of a utility to generate a CREATE CURSOR command from a table structure? I thought I've run across one over the years, but I can't find it now. This is just a one-time thing I could do manually, but there are a lot of fields in the table, so if there is a utility out there, I'll use it.
>
>Thanks.

I think something like this will do the job.
USE TABLE
AFIELDS(laStructure)
CREATE CURSOR c_test from ARRAY laStructure
[Update]
Another way is to just use SELECT

SELECT * FROM TABLE INTO CURSOR C_TEST READWRITE
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Reply
Map
View

Click here to load this message in the networking platform