Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot create a table from array
Message
 
 
À
16/12/2006 20:53:04
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01178324
Message ID:
01178335
Vues:
24
>It could be using some of dbc-only properties (default values, triggers, long field names, nulls etc). Set a breakpoint on the create table command, and in the debugger look at the aDbfStruct array. If there's anyting non-default in any columns beyond the 5th, that's it.
>

The table has no triggers, long field names, nulls. The only thing I see in the debugger is the the first element of the array has value of the table name in column 12. All other elements have this column as empty string.

>You may be better off with
>
>
select * from orig_file into cursor temp_copy readwrite nofilter;
>   where .f.
>
>
>In the end, if you really want the content of the cursor in a free table for later, you can copy it out by a simple copy command.

You see, this routine I am working on is for fixing data corruption.
The routine creates a temp table of the same structure and then record-by-record copy from what maybe a bad table to a temp table.

Thank you for your suggestions.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform