Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Structural index file
Message
 
 
À
26/01/2009 14:12:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01376051
Message ID:
01377090
Vues:
24
Hi David,

There is not 100% guarantee that the physical file would be created on disk, that's why the code was failing. I think Chaim Caron had a similar problem recently.

>Look what i figured out. I dont understand why this works, but it does
>
> *If I add the first field with the code ALTER TABLE ALIAS(m_alias)
> *I can then add the rest fields with ALTER TABLE DBF(m_alias)
>
>IF UPPER(m_alias)="SMFALIAS"
> && executing from program 1
> ALTER TABLE ALIAS(m_alias) ADD COLUMN age c(4)
>ELSE
> && executing from program 2
> ALTER TABLE DBF(m_alias) ADD COLUMN age c(4)
>ENDIF
>
>
> *intersting why does the code DBF() work now from both programs
> ALTER TABLE DBF(m_alias) ADD COLUMN room c(4)
> ALTER TABLE DBF(m_alias) ADD COLUMN FIRSTE c(25)
> ALTER TABLE DBF(m_alias) ADD COLUMN firsth c(25)
> ALTER TABLE DBF(m_alias) ADD COLUMN lasth c(30)
>
>Now I changed it as one of you told me to
>I dont know why the code was written this way, its pretty old code.
>
>I changed it to
> ALTER TABLE (m_alias) ADD COLUMN age c(4)
> ALTER TABLE (m_alias) ADD COLUMN room c(4)
> ALTER TABLE (m_alias) ADD COLUMN FIRSTE c(25)
> ALTER TABLE (m_alias) ADD COLUMN firsth c(25)
> ALTER TABLE (m_alias) ADD COLUMN lasth c(30)
>
>and everything is working now
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform