Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create cursor when no. of fields unknown
Message
De
07/05/1998 14:26:24
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
07/05/1998 14:09:06
Dave Emerson
Dc Emerson Consult8Ng, Inc
Destin, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00097782
Message ID:
00097793
Vues:
23
>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
Dave,
After creating the cursor you load it from several tables, so I think you use and SQL to do that. If so simply SQL to a true cursor and use it :
select ... where .t. and ... into cursor tcTemp
use dbf("tcTemp") in 0 again alias tcGridCursor
use in "tcTemp"
select tcGridCursor
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform