Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Edit box on form
Message
From
16/04/2002 22:54:00
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Edit box on form
Miscellaneous
Thread ID:
00645784
Message ID:
00645784
Views:
42
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
Next
Reply
Map
View

Click here to load this message in the networking platform