CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    format text(string) to double

    hi, i'm new with VB and i'd like to know how to format a string into a double or an int.
    Right now i'm using a grid control and I have matriceDialog.gridMatrice.Text of a certain row and column and I want to place it in an array of doubles.
    MyArray(i,j) as double
    when I do MyArray(i,j) = matriceDialog.gridMatrice.Text, it' says type mismatch(which I understand)

    tank you


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: format text(string) to double


    MyArray(i,j) = CDbl(matriceDialog.gridMatrice.Text)




  3. #3
    Guest

    Re: format text(string) to double

    thanks a lot


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured