Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stopped working in VFP 7
Message
 
 
To
30/10/2001 23:57:28
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00575331
Message ID:
00575582
Views:
31
>>>Thank you. Actually, I've applied two tests. One is from the command window to display len( _ClipText). The other is to paste the clipboard contents into an external (non-VFP) application or, as I believe you have suggested, another VFP editor window.
>>>
>>>If it's straightforward enough I'd be curious what issues you have seen with _ClipText. Would this be just with VFP 7 or earlier version(s)?
>>>
>>>Again, thank you for your generous assistance.
>>
>>For example, If I copy following code into clipboard
DEFINE CLASS MyRightClick AS Column
>>  oHookedObject = oFoo
>>  procedure oHookedObject.RightClic
>>     DO Menu1.mpr
>>  endproc
>>ENDDEFINE
and than issue ? _cliptext it displays consistently
ENDDEFINEenu1.mpredObject.RightClic
>If I paste it in the commnad or edit window window it's okey.
>
>?strtran(_cliptext, chr(13), chr(13)+chr(10))
>
>displays it right. Though, it is needed only for method code, because it's stored with CRs only; .prg files have LFs as well. This is more the matter of how ? command prints on the screen: the first one will print b's over the A's (not really covering the last hidden A), while the other will print in two lines. Including only LF without a CR will produce a staircase.
>
>?"AAAAAAAAAaaaaaaaaaaaaaaaaaa"+CHR(13)+"bbbbbbb"
>?"AAAAAAAAAaaaaaaaaaaaaaaaaaa"+CHR(13)+CHR(10)+"bbbbbbb"

Thanks Dragan. I didn't know about CRs only in the method code.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform