Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Visual extend problem
Message
 
À
18/04/1998 14:18:09
Ian Johnston
Computer Software Solutions
Woodland, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00093098
Message ID:
00093721
Vues:
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.

I had the problem with exactly the same place. But my one-to-many form worked with views and was more complicated than it supposed in the framework, so I ended up writing my own.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform