Cheers
Aminah
________________________________________
Aminah Golamy
Senior Systems Integration Consultant
Currimjee Jeewanjee Information
Technology
38, Royal
Street
Port Louis,
MAURITIUS
( Tel : +
230-206-6235
( Fax: +
230-242-0066
( GSM : +
230-728-0457
* email
: aminah...@currimjee.intnet.mu <mailto:aminah...@currimjee.intnet.mu>
* SMS Mobile Mail : 23072...@emtelworld.net <mailto:23072...@emtelworld.net> [ max 130 chars ]
-----Original Message-----
From: baruch barshalev [mailto:vela...@yahoo.com]
Sent: Sunday, June 08, 2003 5:39 PM
To: UNIF...@uug.org
Subject: [UNIFACE-L:3355] Re: Conversion of Character into ASCII CodeHi Aminah,
you can use a clumsy global proc.call gp_getbackentry gp_getbackparamsstring ins : inendparamsselectcase inscase 'A'return (65)case 'B'return (66)etc...endselectcasewhenever u want to know the conversion of character to its ASCII Codejust call the function and check the $status.baruchHi Aminah,
AFAIK, there is no function to do so.
I abuse the SMOD trigger to get this information.
When a modification is done to a UNIfield, $char holds the ASCII-code.
I use the following pseudo-code:
; EDIT-Trigger of form CHAR_CONVERT
call macro ("%%p_char[1:1]%%%")
edit CHAR_CONVERT.DUMMY
return(CHAR_VALUE.DUMMY )
entry macro
params
string p_char : IN
endparams
macro p_char
end
; SMOD of CHAR_CONVERT.DUMMY
CHAR_VALUE.DUMMY = $char
call macro ("^QUIT")
success, Uli
UNIF...@uug.org schrieb am 07.06.03 22:44:56:
Hello Unifacers,
When converting ASCII Code into its character, we use $tometa as below:
$1 = 66
$2 = $tometa($1)
Here, $2 will be equivalent to "B".
Now I want to convert B back to 66, i.e. conversion of character to its ASCII Code, does anybody know the ! corresponding function?
Thanks for replying back.
Kindest Regards
Aminah
________________________________________
Aminah Golamy
Senior Systems Integration Consultant
Currimjee Jeewanjee Information Technology
38, Royal Street
Port Louis, MAURITIUS
( Tel : + 230-206-6235
( Fax: + 230-242-0066
( GSM : + 230-728-0457
* email : aminah...@currimjee.intnet.mu
* SMS Mobile Mail : 23072...@emtelworld.net [ max 130 chars ]
--
Ulrich Merkel
mailto:Ulrich...@web.deBEGIN:VCARD
VERSION:2.1
N:Merkel;Ulrich;;;
FN:Ulrich Merkel
BDAY:1953-10-19
TEL;HOME;VOICE:+4969317881
TEL;HOME;VOICE:+491775870854
ADR;WORK:;;Leunastr. 13 a;Frankfurt;;65929;Deutschland
EMAIL;INTERNET:ulrich...@web.de
URL;HOME:www.ulrich-merkel.de
END:VCARD
Do you Yahoo!?
Free online calendar with sync to Outlook(TM).