Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to maintain the user's place in memo field
Message
From
12/09/2012 01:23:12
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01552745
Message ID:
01552756
Views:
81
>Well, that's the easy part for sure. But the popup can't be modal since the user needs to do other tasks--in and out of the application. If it isn't modal, you need to prevent the window from getting buried or lost. I've played with wontop() but it doesn't work well. If the user closes the order, the popup needs to close and the user's position in the memo calculated and saved so it can be restored later. A combination of memlines() and mline() should do that part, but there isn't a logical place to store that value except perhaps in the memo itself. . .
>
>I guess I was hoping there is some trick I had forgotten--or never knew!

If you're using something like an Editbox to work with your memo field's contents, maybe the .SelStart property could help.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform