General information
Category:
Forms & Form designer
>>Set Library to (Home()+"FoxTools.Fll") Additive
>>
>>* get current window
>>wHandle = _WOnTop()
>>If m.wHandle == 0
>> Return
>>Endif
>>
>>* get current line
>>lnPos = _EdGetPos( m.wHandle )
>>lnLine = _EdGetLNum( m.wHandle, m.lnPos )
>>lnStart = _EdGetLPos( m.wHandle, m.lnLine )
>>lnEnde = _EdGetLPos( m.wHandle, m.lnLine+1 ) - 1
>>lcLine = _EdGetStr( m.wHandle, m.lnStart, m.lnEnde )
>>lcLine = ChrTran( m.lcLine, Chr(10)+Chr(13), "" )
>>
>>? lcLine
>>Christof
>
>I tried that and either GPF or if I set step on I'm getting a window handle but all the positions are returning 0.
>
The above works great. Just had to make sure I had a memo field to work with otherwise it would GPF :).
Thanks again.
Dan
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only