Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor fields being truncated at runtime
Message
From
19/01/1999 11:40:48
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00177621
Message ID:
00177629
Views:
28
>Hi all,
>
>I have a routine where I read a table structure using AFIELDS()and copy this structure to a cursor. Doing it from the command window works fine, which allows me to preview my report; but as soons as I run the form to call the report, the fields on the cursor get truncated to 10 characters and the report won't work, what's going on? any suggestions?
>
>Thanks,
>
>Gil

When you are running this at Runtime, are you getting your AFIELDS() data from a different table than your design time one? Maybe the runtime table structure is different.

Also, rather that using AFIELDS, you could
SELECT * FROM tablename INTO CURSOR cursorname NOFILTER
to get a copy of your original table for reporting.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform