Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need best solution
Message
From
14/06/2000 16:18:29
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Need best solution
Miscellaneous
Thread ID:
00380427
Message ID:
00380427
Views:
77
I guess I have spent too much time in Oracle lately! I need to do the following in a VFP database (Oracle pcode follows)
for when a user modifies a primary key in a sub table, the parent table needs it foriegn key fixed. I just seem to have gone brain dead on the VFP way to do it.
/* row level trigger of child table, fire after update */

create trigger fix_master on update of pkey row
new as new old as old
update master
set fkey = :new.pkey
where fkey = :old.pkey

I cannot figure out how to get old and new values. I have thought to do it in the form, but where is the isdirty flag, or equivilant?
Oh yeah, its not my design, or there would be no way a user could modify a primary key!
Next
Reply
Map
View

Click here to load this message in the networking platform