|
Home > Archive > dBASE Knowledge Base > February 2006 > Esc Sequence
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Fuad Abdullahi 2006-02-02, 8:23 pm |
| I’m working with dBase III Dos based. Is there a way to insert an ESC Sequence command into dBase III. I’m trying to use a signature font and it use a sequence command which is “<ESC>(5Q<ESC>(s1p36.0v0s060T ”. The issue is whenever you hit the esc but
ton, it wants to exit or cancel. Help Please
| |
| David Kerber 2006-02-02, 8:23 pm |
| In article <o0es8REKGHA.1104@news-server>, hanshaloof@gccnj.edu says...
> I?m working with dBase III Dos based. Is there a way to insert an ESC Se=
quence command into dBase III. I?m trying to use a signature font and it u=
se a sequence command which is ?<ESC>(5Q<ESC>(s1p36.0v0s060T ?. The issue=
is whenever you hit the esc button, it wants to exit or cancel. Help Pleas=
e
>=20
Try using chr(27) or {27} in the string where you want an escape. =20
That's what I use in dBase IV. I don't know if III is the same, but it=20
might be.
--=20
Remove the ns_ from if replying by e-mail (but keep posts in the=20
newsgroups if possible).
| |
| Marilyn Price 2006-02-03, 7:23 am |
| In article <MPG. 1e4c4db5113d316989d8
a@news.dbase.com>,
ns_dkerber@ns_Warren
RogersAssociates.com says...
> In article <o0es8REKGHA.1104@news-server>, hanshaloof@gccnj.edu says...
> ESC Sequence command into dBase III. I?m trying to use a signature
> font and it use a sequence command which is ?<ESC>(5Q<ESC>(s1p36.0v0s060T ?.
> The issue is whenever you hit the esc button, it wants to exit or
> cancel. Help Please
>
> Try using chr(27) or {27} in the string where you want an escape.
> That's what I use in dBase IV. I don't know if III is the same, but it
> might be.
dBase III+ will recognize the chr(27), which is exactly what needs to be
inserted into the string above:
? chr(27) + "(5Q" + chr(27) + "(s1p36.0v0s060T"
The curly bracket notation was introduced with dBase IV.
--
Marilyn Price
M. P. Data
| |
|
| Many thanks Marilyn and David for you input.
My question for Marilyn is the font signature esc sequence is <ESC>(5Q<ESC>(s1p36.0v0s060T, however the command I insert in Dbase was ? chr(27) + "(5Q" + chr(27) + "(s1p36.0v0s060T". Do I need the ?, ", and + signs as well as all the spaces.
Thanks for your help guys.
Marilyn Price Wrote:
> In article <MPG. 1e4c4db5113d316989d8
a@news.dbase.com>,
> ns_dkerber@ns_Warren
RogersAssociates.com says...
>
> dBase III+ will recognize the chr(27), which is exactly what needs to be
> inserted into the string above:
>
> ? chr(27) + "(5Q" + chr(27) + "(s1p36.0v0s060T"
>
> The curly bracket notation was introduced with dBase IV.
>
> --
> Marilyn Price
> M. P. Data
| |
| Marilyn Price 2006-02-04, 9:23 am |
| In article <LCQtw4MKGHA.980@news-server>, hanshaloof@gc says...
> Many thanks Marilyn and David for you input.
>
> My question for Marilyn is the font signature esc sequence is
> <ESC>(5Q<ESC>(s1p36.0v0s060T, however the command I insert in
> Dbase was ? chr(27) + "(5Q" + chr(27) + "(s1p36.0v0s060T".
> Do I need the ?, ", and + signs as well as all the spaces.
>
The spaces are optional. The quotes and plus sign are not optional.
The ? can be a ? or a ??, but must be one of the two.
The ? is a dBase command which tells the computer to send the character
string which follows to the printer and send a carriage return/line feed
combination first. The ?? is a dBase command which tells the computer
to send the character string which follows to the printer and don't move
the current position.
The quotes are necessary because you are building a character string.
Without the quotes, dBase would assume the information was a memory
variable or a function or a number or something else and stop with an
error message, as it couldn't figure out what you were trying to do.
The plus sign helps you build the correct character string. You are
using a built-in function (chr()) to convert the number 27 to an escape
character, then appending the rest of the coded string.
Hope this helps.
--
Marilyn Price
M. P. Data
| |
| David Kerber 2006-02-06, 9:23 am |
| In article <MPG. 1e4d1aa6a0c7d8659896
f8@news.dbase.com>,
mprice@tri_con.net says...
....
>
> dBase III+ will recognize the chr(27), which is exactly what needs to be
> inserted into the string above:
>
> ? chr(27) + "(5Q" + chr(27) + "(s1p36.0v0s060T"
>
> The curly bracket notation was introduced with dBase IV.
Thanks for clarifying that.
--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
|
|
|
|
|