Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding data to memo field
Message
 
To
17/11/2015 06:54:38
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:
01627546
Views:
45
>>>>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?
>>>
>>>Hi colin
>>>
>>>you want to use selstart and set it to the length of the text
>>
>>The data is displayed in text32 - I want to add 10 characters and continue typing-
>>The data is in the Notes field
>>
>>My code is
>>
>>select globalnew
>>STORE LEN(TRIM(notes)) TO ww
>>ww=ww+10
>>
>>
>>thisForm.text32.SelStart=ww
>>thisform.refresh
>>
>>
>>What have I done wrong?
>
>I'm just guessing that the cursor position is at the end of the text, not the end of the text plus 10. Is that what the problem is?
>
>You will need to add space(10) to the end of your string in order for ww to be correct.
>
>something like this:
>
>
>replace Notes with Notes + SPACE(10)
>STORE LEN(TRIM(notes)) TO ww
>thisForm.text32.SelStart=ww
No The next time I open the notes field I want the cursor to start at the previous data + 10 but all it does is to strat at the beginning of the notes field
Specialist in Advertising, Marketing, especially Direct Marketing

I run courses in Business Management and Marketing
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform