all groups > vj# > april 2005 >
You're in the

vj#

group:

printf in J#?


printf in J#? Sam Evans
4/18/2005 10:54:05 AM
vj#: 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#?

Re: printf in J#? James Park
4/18/2005 2:49:24 PM
You mean something like System.Console.Write() ?
[quoted text, click to view]

Re: printf in J#? George Birbilis [MVP J#] [9880]
4/19/2005 5:12:14 PM
[quoted text, click to view]


..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@kagi.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
.........................................................................


AddThis Social Bookmark Button