Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the value of a field in BeforeUpdate of CA
Message
From
23/09/2004 05:42:24
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
23/09/2004 05:16:03
Eyvind W. Axelsen
Profdoc Norge As
Oslo, Norway
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00945286
Message ID:
00945289
Views:
24
Eyvind,

if you change a field that was not previously changed, then you might need to alter the cUpdateInsertCMD parameter.
This is the command that is used to alter the "base" table. Have a look into it and you will see.

I'm not sure on the next so have a try.
There is also the BeforeCursorUpdate event involved in the update. Try if it fires before BeforeUpdate. If it does, then you might enter your code there.

Agnes
>I am using CursorAdapters to access both native fox tables and tables on a SQL server through ADO. This works great, most of the time, but today I came accross a little "quirk":
>
>If the value of a field in the cursor is changed in the BeforeUpdate event of the CursorAdapter, the table in the database is updated with the new value as expected if the datasource is ADO. However, if the datasource is Native, the change that was done in BeforeUpdate is not respected.
>
>This seems like a bug to me, any ideas?
>
>Thanks,
>
>Eyvind.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform