Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Edit box on form
Message
De
16/04/2002 22:54:00
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Edit box on form
Divers
Thread ID:
00645784
Message ID:
00645784
Vues:
43
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
Fil
Voir

Click here to load this message in the networking platform