Information générale
Catégorie:
The Mere Mortals Framework
>After changing to CBMM 3.02 my screens immediately stopped working. Specifically they failed on
>
>lcMenuBars = SUBSTR(lcMenuBars, lnLength + 1)
>
>in ctoolbarbutton.SETENABLED(). I flipped back to CBMM 3.01 and everything waas fine. The difference? My default session has SET TALK ON. The old CBMM somewhere sets it to off and the new does not. I see that setting it to off is one of the first things in setup.prg. For now I set the sessionenvironment in cbizobj.
>
>Is that OK?
>
>Thanks.
I ran into this bug before and it is a wild one. It seems if you do a substr on a string with a value that is larger than the the string length you will get an error if talk is on and an empty value if talk is off. I think there is something wrong here and I don't think the performance of a function (to error or not to error) should be based on the talk setting!
Oh well.
Précédent
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