Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where M I in memo while editing in EditBox
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00226121
Message ID:
00226165
Views:
24
>>Is there any way to find which position Iam In memo. i.e. which row , column
>>
>>TIA
>
>There isn't any readymade func available but you can write some code to do it.
>For example, I have found out which Row are you on as follows.
>
>WITH ThisForm.edttry
> lcText = LEFT(.Value,.SelStart)
>ENDWITH
>?'Rows : ' + STR(OCCUR(CHR(13),lcText) + 1)
>
>Try to extend the code above and you will get the column position too.
>

There's a problem with this approach; with word wrap, there aren't hard carriage returns to count.

>Bye
>Jayesh
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform