Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding data to memo field
Message
From
17/11/2015 10:33:44
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01627541
Message ID:
01627560
Views:
55
>In my application when I click on a command button it opens up a memo field for editing but the cursor is always pointing to the top of the memo field
>
>How do I get the cursor to start at the end of the memo field?

If you're using the straight command, then

modify memo mymemo range len(mymemo), len(mymemo)

but I wouldn't recommend doing that - the style and positioning of the window is up to the user and is saved in a foxuser file (which is kind of vulnerable so you'd have to manage it and catch errors and react to them); you've read probably 2000 messages here about it and why is it not wise to have a foxuser file in runtime. Rather build a form with an editbox and show your memo in it - bind it, copy value forth (and back if the user clicks OK). It's a form, you're in control.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform