Information générale
Catégorie:
Codage, syntaxe et commandes
I have a rather strange situation which I can't figure out what is happening.
I have an edit box on a form. I populate the edit box from a memo field from a table in the init of the form. When I leave the form I run the following code to see if the contents of the editbox has changed as follows:
If Thisform.edtts_memo.Value) != exhibitors.ts_memo
Thisform.changed = .T.
Endif
If the memo field in the table has a value in it and you overwrite it in the editbox the expression is evaluated as .t. and thisform.changed is changed to .t. as you would expect.
If the memo field in the table is blank and you add text such as "AAAA" to the edit box, the expression gets evaluated as .f. and never changes the value of thisform.changed. When I look in the debugger the value for thisform.edtts_memo.value = "AAAA" and the value for exhibitors.ts_memo is "" and you would think the expression would evaluate to .t. not .f..
Anyone experience this before?
Thanks
Gaylen
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