convert int to numeric (formatted) string

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?cmF1bGF2aQ==?=

    convert int to numeric (formatted) string


    vs2005 c#

    hi:
    need to convert a simple int to a format nnnn. if I have int 1 I want the
    result to be padded with 0s as 0001 on a string

    I have int 1 and I want "0001"

    any help. Thanks

    so far these dont work
    field.ToString( "nnnn") or field.ToString( "####")
Working...