Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TableUpdate() - Not Updating
Message
 
 
To
28/06/2009 12:31:42
Ed Hizon
Skswood Sdn. Bhd
Kuala Belait, Brunei
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01408907
Message ID:
01408908
Views:
67
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform