Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox again
Message
De
06/11/2005 04:54:51
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01064970
Message ID:
01065802
Vues:
20
>Hi everybody,
>
>We have a form with a pageframe with 9 pages. One of the pages called pageAction, that has a cntAction on it. There is a button called Name Search in this container.
>
>Here is a code snippet from that button:
>
>
>*** Update status code
>
>            thisform.cntMainInfo.cboStatusCodes.displayvalue = m.lcNewStatusCode
>            thisform.lStatusCodeChanged = .T.
> 			thisform.oBizObj.lCascadeMessages = .F.
>
>            if m.llRetVal and thisform.oBizObj.save() = FILE_OK
>
>E.g. we set displayvalue of the combobox that belongs to the container on the form itself (this container is located bellow the pageframe) and then save the data. I also would like to mention that the lcNewStatusCode is a system status code that is displayed in the combobox as disabled item.
>
>Now, when we try to close the form the question is asked: "Do you want to Save?" This question should not appear since the data is already saved

Are you sure ?
Are you certain that the saving routine resets the state of the view ?
What does it do? TABLEUPDATE (.T. ) ?

(we can answer Yes or No, it would make no difference). Do you know why GetNextModified() function reports a change here while new status code is already saved?

What value does he/she return GETFLDSTATE(-1)?
Which field does it result modified?

If you remove

thisform.cntMainInfo.cboStatusCodes.displayvalue = m.lcNewStatusCode

doesn't the problem appear?

>
>Thanks in advance.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform