Quote:
I'm sure this has been asked before, but I searched groups.google.com
and
didn't find any answers. I was wondering if anyone has created a class
that mimics the printf() function found in many other languages, for J#?
You mean something like System.Console.Write() ? |
..NET has function for formatting strings, I think it's called
"String.Format" or something (static method of string class). Search the
docs for "format". It doesn't use same formatting chars as printf, but is a
lot better in the aspect that they use numbered items in the format string
so you can have your parameters in whatever order you want)
else find some free code for Java and compile it with J#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
George Birbilis <birbilis (AT) kagi (DOT) com>
Microsoft MVP J# for 2004, 2005
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ QuickTime controls (Delphi & ActiveX: VB, PowerPoint, .NET)
+ Plugs (InterProcess/Internet communication)
+ TranXform (VB6 form to ASP.net WebForm convertion)
http://www.kagi.com/birbilis
+ Robotics
http://www.mech.upatras.gr/~robgroup
.................................................. .......................