Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create table and corrupted when brow in foxpro
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
VFP Compiler for .NET
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01308503
Message ID:
01309182
Vues:
12
Thanks Samuel, solved.

>Hi Zakaria:
>
>You have to close the tables "manually" as we have not implemented the command QUIT (that will take care of that).
>
>So simply do this:
>
>USE IN klm
>USE IN klm1
>
>Also the line:
>
>APPEND FROM klm1 won't work as in VFP because it is implemented for:
>
>APPEND BLANK
>And APPEND FROM CSV.
>
>>Hi All,
>>
>>I have created a table and inserted 1000 records using the compiler. It works w/o an error. But when I want to view it in the datasession of foxpro I get an error "Table d:\weggooi\klm.dbf" has become corrupted. Does this mean I can't view the table in visual foxpro when the table has been created with the compiler? If so, are there any other options to view the table?
>>
>>I have the following code:
>>
>>SET DEFAULT TO d:\weggooi
>>CREATE TABLE "KLM" (VELD1 n(10,2))
>>CREATE TABLE klm1 (veld2 N(10,2))
>>
>>SELECT klm
>>APPEND FROM klm1
>>
>>FOR i=1 TO 1000
>>	INSERT INTO klm VALUES (i)
>>	INSERT INTO klm1 values(i)
>>endfor	
>>
>>SELECT klm
>>
>>cString = ""
>>FOR i =1 TO 1000
>>	GOTO i
>>	cString = cString  + ALLTRIM(STR(veld1)) + CHR(13) + CHR(10)
>>ENDFOR
>>
>>STRTOFILE(cString,"d:\weggooi\myfile.txt")
>>
Zakaria al Azhar
My blog on Actuaris.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform