Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running the app from within foxpro
Message
De
10/04/1998 05:53:34
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00090589
Message ID:
00091002
Vues:
37
>>>It would be nice to include these blank tables in the project, but if I'm understanding you right, I can't copy these tables if they're in the project? Or am I misreading that?
>>>
>>
>>Why not create them programmatically?
>
>I don't know how to make a table programmatically. Is that a better way of doing it? Copying the tables is how the original programmer did it, and I'm just following that.
>
>Thanks,

I'd start by taking a look at the CREATE TABLE command. Rather than copying out an empty table, you can build it in place. The following line of code would create an empty table called MyTable with three fields, a 25 character character field MyFirstFld, a numeric My2ndFld and a memo field MyMemoFld:

CREATE TABLE MyTable (MyFirstFld C(25), My2ndFld N(8,2), MyMemoFld M)

No need to have a physical copy of the .DBF and .FPT - just build them as needed, where needed.

This doesn't solve the problem of starting with a non-empty table.

Ed
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform