Hi,
No idea if 33, 35 or 49 are printables, if so:
StringBuilder sb = new StringBuilder( "ABC" );
if not:
StringBuilder sb = new StringBuilder( );
sb.Append ( (char)33 );
...
then in either case:
sb.Append( this.parent.Dsp.MessageOut().SubString( 1, 20 ) );
sb.Append( Environment.NewLine );
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"J" <co**@hotmail.com> wrote in message
news:O1**************@TK2MSFTNGP09.phx.gbl...
Hello,
I'm trying to translate the following line (extracted from VFP code) to
CSharp code, but for the moment I've not been able. Could anybody give me
a
hand ?
I need to convert it as string :
string
cmd=char(33)+char(35)+char(49)+substr(this.parent. Dsp.MessageOut(),1,20)+chr
(13);
Thanks ;)