Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
1707 Error using ALTER TABLE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01347518
Message ID:
01347519
Vues:
16
As a follow up, I tried this and the TRY/CATCH causes the ALTER TABLE to fail in the same way that having an ON ERROR routine enabled. I'm stumped.
        lcWasOnErr = ON("ERROR")
        TRY 
          ON ERROR
          ALTER TABLE myCursor ADD COLUMN NewField C(10) 
          ON ERROR &lcWasOnErr.
          =MessageBox(lcAlias + ": Added field '" + lcField + "' .")
        CATCH
          ON ERROR &lcWasOnErr.
          =MessageBox("*ERR* Failed to add field")
        ENDTRY 
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform