Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Auto Increment not working with APPEND FROM
Message
De
17/04/2003 11:54:49
 
 
À
16/04/2003 17:09:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00778519
Message ID:
00778891
Vues:
28
>>A temp 'table' works if I create the structure without the autoinc column, append from the text file that doesn't contain the autoinc column, and then append to the 'actual' table from the 'temp' table.
>>
>>Append from the 'cursor' doesn't work directly - the append command doesn't seem to support the alias matching the cursor name. If I hack and use the temporary filename of the cursor, ie.,
>>
>>APPEND FROM C:\DOCUME~1\FLN\LOCALS~1\TEMP\I7X002YW.TMP
>
>APPEND FROM DBF('CursorAlias')
>
>>
>>then it will append. I don't like the latter solution (hack), and I also don't like the former, either - if the destination table is in a DBC with long field names, then I need to create the temp table in a DBC so I can have the long field names match for the append command.
>
>No need for that. VFP cursors can have long field names. CREATE CURSOR xyz (LongFieldName C(20))

dbf('cursoralias') works (can't believe I missed that). Ditto on the long field names in cursors - thats why I wanted to use a cursor.

Thanks,

Franz
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform