Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Solid Green

@Solid Green
About
Posts
6
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Help me with formatted int32 strings. [modified]
    S Solid Green

    This method of int32 convert to string with format,maybe can not reverse. When the format string contains "#". From MSDN: # Digit placeholder If the value being formatted has a digit in the position where the '#' appears in the format string, then that digit is copied to the result string. Otherwise, nothing is stored in that position in the result string. Note that this specifier never displays the '0' character if it is not a significant digit, even if '0' is the only digit in the string. It will display the '0' character if it is a significant digit in the number being displayed. The "##" format string causes the value to be rounded to the nearest digit preceding the decimal, where rounding away from zero is always used. For example, formatting 34.5 with "##" would result in the value 35.

    C# help

  • Help me with formatted int32 strings. [modified]
    S Solid Green

    Yes , It is the problem. :((

    C# help

  • Help me with formatted int32 strings. [modified]
    S Solid Green

    Thank you for your answer. And ,i made a bad formatted sample. Sorry to everyone. we know that code (1234).ToString("ABCD-000066000880") 's value is ABCD-000066123884. And I want to get a int value from string "ABCD-000066123884" and formatted string "ABCD-000066000880"。

    C# help

  • Help me with formatted int32 strings. [modified]
    S Solid Green

    when the format string is "ABCDE-000066000880"; int 1234 custom formated value is "ABCDE000066123884" My question is how to get the int value by custom format string "ABCDE-000066000880" and formatted string "ABCDE000066123884". :)

    C# help

  • Help me with formatted int32 strings. [modified]
    S Solid Green

    Thank you.:) I do not have a good idea to convert string ABCDE-0000012345 to int32 :(( Especially when the format string is "ABCDE-0066000880"

    C# help

  • Help me with formatted int32 strings. [modified]
    S Solid Green

    We can use int32.TryPrase("1231312",out tmpInt32Value) for normal situtations. But the following code, string outputString = (12345).ToString("ABCDE-0000000000"); I do not have a good idea to read such string ABCDE-0000012345 :(( Especially when the format string is "ABCDE-0066000880"

    modified on Tuesday, May 26, 2009 3:09 AM

    C# help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups