Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TableUpdate() - Not Updating
Message
 
 
À
28/06/2009 12:31:42
Ed Hizon
Skswood Sdn. Bhd
Kuala Belait, Brunei
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01408907
Message ID:
01408908
Vues:
66
>Dear all,
>
>What are the possible problems if I have coded the following:
>
>select &sqlview
>cursorsetprop("buffering",5,"&sqlview")
>tableupdate(.t.)
>
>and it is not updating.
>
>thanks for your time.
>
>Ed


You should add aerror(laError) after tableupdate and check each element of the array.

Also, why do you have "&sqlView" here, would sqlView (no "" and macro) work the same? Use name expression where appropriate.

You may review Choosing between Macro substitution and Name expressions FAQ #7841

So, your code may be
select (sqlview)
cursorsetprop("buffering",5,sqlview)

if not tableupdate(.t.)
   local array laError[1]
   =aerror(laError)
   =messagebox("Error " + laError[1,2])
endif
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform