Forum  Core :: SDK (Vi...  Developing the ...  How to format text?
Previous Previous
 
Next Next
New Post 5/3/2011 3:02 AM
Unresolved
  Rochmad Sigit
18 posts
No Ranking


How to format text? 

Dear Support,

 

how to format text like in vb6 code using visual webgui

like this :

dim num as string = "12345"

num = vb6.format(num, "000,000,000.00")

and the result is num = "000,012,345.00"

 

i've tried with formatnumber but the result only 12,345 without 0 in front of number,,

please give me advice n thanks,,

 warm regards

 

Rochmad Sigit

 
New Post 5/3/2011 6:13 PM
  palli
11824 posts
1st Level Poster




Re: How to format text? 

Hi Rochmad Sigit,

I believe string.Format("{0:000,000,000.00}", 12345) should do the trick.

See more here.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  Core :: SDK (Vi...  Developing the ...  How to format text?
Azure banner
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS