1. Formating for MleText ? (win32lib.ew)
- Posted by tim781 at PACBELL.NET Mar 17, 2001
- 359 views
- Last edited Mar 18, 2001
------=_NextPart_000_0037_01C0AF2E.D368EFC0 charset="iso-8859-1" HI, I'm writting to ask how to display an integer in MleText. If the integer is 5, how can i make MleText print 5 instead of ASCII? thanks, timmy :) ------=_NextPart_000_0037_01C0AF2E.D368EFC0 charset="iso-8859-1" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> print 5=20 instead<BR>of ASCII?<BR><BR>thanks, timmy = :)<BR></FONT></DIV> ------=_NextPart_000_0037_01C0AF2E.D368EFC0--
2. Re: Formating for MleText ? (win32lib.ew)
- Posted by leviathan at uswest.net Mar 17, 2001
- 371 views
- Last edited Mar 18, 2001
> HI, > > I'm writting to ask how to display an integer in MleText. > > If the integer is 5, how can i make MleText print 5 instead > of ASCII? > Timmy, sprintf() the integer into the mletext and you should be fine :) HTH, --"LEVIATHAN"
3. Re: Formating for MleText ? (win32lib.ew)
- Posted by Derek Parnell <ddparnell at bigpond.com> Mar 17, 2001
- 380 views
- Last edited Mar 18, 2001
------=_NextPart_000_005B_01C0AFCF.53B5FA60 charset="iso-8859-1" Hi Tim, use ... setText(myMle, sprintf("%d", 5)) This is automatically handled in the next version v0.56. If what is = supplied is not a sequence it will displaying as a number. This new = behaviour will possibly break programs that are displaying single = characters using atoms. Let me know if this will inconvienence anyone. The new version will handle stuff like... setText(myMle, 5) setText(myMle, 5.123) ------ Derek Parnell Melbourne, Australia "To finish a job quickly, go slower." ------=_NextPart_000_005B_01C0AFCF.53B5FA60 charset="iso-8859-1" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> sprintf("%d",=20 5))</STRONG></FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>This is automatically handled in the = next version=20 v0.56. If what is supplied is not a sequence it will displaying as = a=20 number. This new behaviour will possibly break programs that are = displaying=20 single characters using atoms. Let me know if this will inconvienence=20 anyone.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>The new version will handle stuff=20 like...</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><EM> setText(myMle, = 5)</EM></FONT></DIV> <DIV><FONT face=3DArial size=3D2><EM> setText(myMle, = 5.123)</EM></FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV>------<BR>Derek Parnell<BR>Melbourne, Australia<BR>"To finish a job = quickly, go slower."<BR></DIV> <BLOCKQUOTE dir=3Dltr=20 style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; = BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style=3D"FONT: 10pt = arial"> </DIV></BLOCKQUOTE> ------=_NextPart_000_005B_01C0AFCF.53B5FA60--