Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create a cursor based on variables in memory
Message
De
04/02/2003 15:47:36
 
 
À
04/02/2003 15:39:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00749040
Message ID:
00749052
Vues:
27
Okay, I thought about it for 30 more seconds. Another idea:

Read through the file, and create a table with one record per variable. Make this table have the same structure as one created with the COPY STRUCTURE EXTENDED command. Then you can create your final table with CREATE FROM. You still have to populate values the same way as my previous post...


>But how to create the table to begin with? I'd have to look at everything in memory and see the type of data in the variable, the size, etc and then manually 'create cursor ...' right? I wish there was a better way! I'd like to take all variables in memory and create a table that has the same field names as the variable names (and arrays) and gather into it... oh well, I guess I was dreaming!
>
>Tracy
>
>>Hey Trace,
>>
>>The only way I can think is to LIST MEMORY TO FILE < filename > NOCONSOLE , and import the file into a table.
>>
>>>Anyway to create a temporary cursor that matches all variables in memory without knowing the variable names, type, and contents beforehand?
>>>
>>>TIA,
>>>Tracy
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform