Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memo field in a grid as a text
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00588222
Message ID:
00588328
Views:
31
>>Nadya,
>>Where do you have the following code?
>>
>>if this.OldValue<>this.value
>>   tableupdate(...)
>>endif
>>
>>
>>If you have above in the valid or lostfocus it should work.
>
>In the LostFocus, but it doesn't work. LostFocus sometimes is being called, and sometimes it is not...

It looks like LostFocus of text in a Grid with memo fires PRIOR to DoubleClick and not after I change memo content and save. So, my changes are not saved by tableupdate. I'll try to put tableupdate in Grid.Valid and Grid.AfterRowColChange instead...




> Also it show empty string in Debugger.
>However, it might be related to the fact, that my Memo field is not updated regardless of my changes...
>
>>
>>>Hi everybody,
>>>
>>>I'm using Memofield in a grid, but I just use textbox (my own class) and not the editbox. So, it shows memo/Memo, and I can double click to see its content.
>>>
>>>Now, if memo changes, I'd like to update my view. I put this.OldValue = this.value in GotFocus() and
>>>
>>>if this.OldValue<>this.value
>>>   tableupdate(...)
>>>endif
>>>
>>>However, my GotFocus and LostFocus fire more times, than I thought, and as a result, it doesn't go to this if condition. How should I handle this problem?
>>>
>>>Thanks a lot in advance.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform