Information générale
Catégorie:
The Mere Mortals Framework
Titre:
Caption not updating when...
Kevin,
Here is what I am doing.
I the init of my form class... which is a subclass of CBizObj I am doing a for loop though the forms collection, in reverse. If I find a form that had the same cfindform value I set cFindUniqueID of the form that is initing to uLastFoundID of the form that I found. I assume that after the init finds the FindProcess will find since I have populated cFindUniqueID.
Well... that seems to work, but the caption does not get updated.
Funny thing is, it does get updated if I just call the find form from the form in questions... My code is like...
nFormCount = goApp.oForms.GetObjectCount()
for x = nFormCount to 1 step -1
oformRef = goApp.oForms.Get( x )
if oFormRef.cFindForm = this.cFindForm and oFromRef.class <> this.class
this.cFindUniqueID = oFormRef.uLastFoundID
this.cPersonName = oFormRef.cPersonName
this.cPersonStatus = oFormRef.cPersonStatus
next x
************
There is a bit more error checking, but that is about the most of it... It does pull the data in properly, however, as I said, the caption was not edited... I had to add...
this.ChangeFormTitle(this.cPersonName)
**************
BTW: The primary biz objs GetBizObjDesc has this code in it...
return cPersonName
Thanks,
BOb
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement