Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visual extend problem
Message
From
18/04/1998 14:18:09
Ian Johnston
Computer Software Solutions
Woodland, California, United States
 
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00093098
Message ID:
00093177
Views:
30
>>I am having a problem on a one to many form. It will not delete the child records. I thought this problem had been solved. Anyone know a solution for this problem ?
>>
>>TIA
>>
>>Ian
>
>Ian, are you working with views, or tables? I don't like how the one-to-many form works too. Do you use the last build of VFX 5?
>
>Nick

Nick,
Yes I am using the latest build. Other than not deleting the records I am not having a problem with the one to many form. I am use tables. I did trace through the code this morning and found that by modifying the ondelete method of the cchildgrid class as follows:
.....
if this.OnPostDelete()
lOK = .T.

*******************************
** Hans Remiens, Thank!

*-- If record is inserted and then deleted remove from buffer
if deleted() and recno() < 0
= tablerevert( .F. )
else
if deleted() or eof()
=tableupdate(1) && ian's fix ****************
locate
else
skip +1
endif
endif
else ......

This now works, and I have sent an email to devigus to see if they see any problem with doing this, do you ? I also do not understand why they put the form in edit mode after deleting the child record.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform