Re: Escape sequences by Andrew
Andrew
Mon Sep 17 18:57:09 PDT 2007
What I'm doing in VFP, is this:
_CLIPTEXT = "Job Closed " + CHR(13) +"** JobNo:
"+ALLTRIM(THISForm.JobNo)+"** "
Then in the other app. I'm doing a paste into what looks like an RTF. The
carriage return works OK, but I would like the text "Job Closed ", to be
automatically Bold. Currently they select it and click on the Bold icon
above the field.
Thought I had done this in the past. No?
Andrew McG
"Dan Freeman" <spam@microsoft.com> wrote in message
news:%23WEqqIU%23HHA.1168@TK2MSFTNGP02.phx.gbl...
> You're thinking of *printer* escape sequences. In the DOS era, to get bold
> in an xBase app you'd use SET COLOR.
>
> There is no "universal code" that means bold to every app. Your answer
> will depend on the receiving app, which may not accept formatting from the
> clipboard at all.
>
> Dan
>
> Andrew McGurk wrote:
>> My program is putiing a string onto the clipboard, which is then
>> pasted by the user into a text field in another application.
>>
>> I would like part of it to be displayed in bold when pasted.
>>
>> In the DOS days, didn't we used to do this with an "escape sequence"?
>> CHR(27) + ....?
>>
>> I can't see a way to do it now. Any suggestions would be appreciated.
>>
>> TIA
>> Andrew McGurk
>
>