Results 1 to 14 of 14

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Bad to the bone Papesha's Avatar
    Join Date: Oct:2002
    Location:
    Posts: 1,685

    Visual Basic .NET

    Visual Basic, , , .

    1(String(18)) 2(String(10)) 3 (double(8))
    123456789012345678 abcdefghij 123,12
    123456789012345679 qwertyuio 321,12
    ......

    400
    , 3 ( , , ) .
    - - fixed widtg !!! , , ...
    : , , . .

  2. #2
    Automatic Jack
    Join Date: Feb:2004
    Location:
    Posts: 216
    , ,
    Code:
    dim s, s1, s2, s3 as string
    dim sr as StreamReader '   system.io, 
    sr = new StreamReader("imeto na faila ti")
    until sr.EndOfStream
      s = sr.ReadLine()
      s1 = s.SubString(0,18)
      s2 = s.SubString(19,10)
      s3 = s.SubString(30)
    
      '    ,        s3  double.
    loop

  3. #3
    Bad to the bone Papesha's Avatar
    Join Date: Oct:2002
    Location:
    Posts: 1,685
    Quote Originally Posted by
    , ,
    Code:
    dim s, s1, s2, s3 as string
    dim sr as StreamReader '   system.io, 
    sr = new StreamReader("imeto na faila ti")
    until sr.EndOfStream
      s = sr.ReadLine()
      s1 = s.SubString(0,18)
      s2 = s.SubString(19,10)
      s3 = s.SubString(30)
    
      '    ,        s3  double.
    loop
    , . . double... ...
    : , , . .

  4. #4
    Registered User
    Join Date: Nov:2004
    Location:
    Posts: 743
    System.Convert

    parse (int, double ) -.

    string double Widowsa "," ".", CultureInfo .

  5. #5
    Automatic Jack
    Join Date: Feb:2004
    Location:
    Posts: 216
    Quote Originally Posted by meo
    System.Convert

    parse (int, double ) -.

    string double Widowsa "," ".", CultureInfo .
    , double.TryParse mscorlib-, . , Convert . framework 2.0.50215 (beta2). , overload-a IFormatProvider . (NumberFormatInfo IFormatProvider). regional options .

  6. #6
    Registered User
    Join Date: Nov:2004
    Location:
    Posts: 743
    -. .

    , Convert, Parse TryParse ( 15 000 000 )

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |