|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Is This Method Of Creating a String Possible?just don't know what keywords to put in the search terms!! So, in a nutshell... I know when you do this with a=10 and b=5 Console.Writeline ("{0} is bigger than {1}", a, b) You will get this - "10 is bigger than 5". BUT can I define a new string like that? I'd love for it to work like this (but I know it doesn't)... Dim myString as String = "{0} is bigger than {1}", a, b Is there any way of creating a string using these kind of placeholder techniques? Thanks in advance. It's OK - I managed to suss it!
I did it like this... Dim myString As String = String.Format("{0} is bigger than {1}.", 10, 5) Happy Bunny! I practically got my wish! Cheers. Am 26.04.2010 23:03, schrieb Space Invader:
> It's OK - I managed to suss it! Congrats.> > I did it like this... > > Dim myString As String = String.Format("{0} is bigger than > {1}.", 10, 5) > > Happy Bunny! I practically got my wish! Starting point for your future researches: (mainly the TOC) http://msdn.microsoft.com/en-us/library/txafckwd%28VS.90%29.aspx -- Armin Thanks, Armin.
That just proves my point - I didn't know what search term to use. I would never have guessed "Composite Formatting", but now I know! Thanks again. SpaceInvader On 26 Apr, 22:32, Armin Zingler <az.nos***@freenet.de> wrote: Show quoteHide quote > Am 26.04.2010 23:03, schrieb Space Invader: > > > It's OK - I managed to suss it! > > > I did it like this... > > > Dim myString As String = String.Format("{0} is bigger than > > {1}.", 10, 5) > > > Happy Bunny! I practically got my wish! > > Congrats. > Starting point for your future researches: (mainly the TOC)http://msdn.microsoft.com/en-us/library/txafckwd%28VS.90%29.aspx > > -- > Armin Congrats!! Really cool! Saga
Show quoteHide quote "Space Invader" <si.vortexNON@SPAMMEgooglemail.com> wrote in message news:ef92d49d-320a-4276-a771-413709937530@j27g2000vbp.googlegroups.com... > It's OK - I managed to suss it! > > I did it like this... > > Dim myString As String = String.Format("{0} is bigger than > {1}.", 10, 5) > > Happy Bunny! I practically got my wish! > > Cheers.
How to send email with no outlook and SMTP server ?
System.net Utilities.FTP or ProcessStart? Sync Framework with multiple branch Resize an image: bug? form inheritence Option strict after debug "Can't write dll because a process has it open" Changes not getting saved to data source return value, exit function Add inner control event. |
|||||||||||||||||||||||