Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursor fields being truncated at runtime
Message
De
19/01/1999 11:40:48
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00177621
Message ID:
00177629
Vues:
27
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform