Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rowbuffering with SendChildMessage()
Message
De
13/06/2002 09:18:08
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Rowbuffering with SendChildMessage()
Divers
Thread ID:
00667889
Message ID:
00667889
Vues:
60
Hi Kevin,

As with my previous email when I used SendChildMessage() method to send a "Delete" message to the child business object (thread #666695), in my testing, I found that it works as long as my child business object uses row buffering. When I used table buffering, it doesn't work. The comments in the delete method says that "tlImmediate" parameter is used for table buffering. But whether I set tlImmediate to .F. or .T., as long as the child business object uses table buffering, the record is not deleted. I call this method in the delete() method of parent business object but before calling dodefault(). Here is my code.

LPARAMETERS tlDeleteAll, tcAlias, tlImmediate
*-------------------------------------------
* The lines below are added to delete the
* records in the child business object
* when a record is deleted in its parent.
*-------------------------------------------
LOCAL lbretval
IF this.lcascademessages
lbretval=this.sendchildmessage("Delete", ".T.,,.T.")
ENDIF
lbretval=DODEFAULT(tlDeleteAll, tcAlias, tlImmediate)
RETURN lbretval

Does this mean that using SendChildMessage()method to send "Delete" command is not really created to handle table buffering? How can I handle it then?

Thanks a lot.

Nerissa Dela Rosa
McFadden's
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform