My first program in VB

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vdraceil
    New Member
    • Jul 2007
    • 236

    #31
    Originally posted by Parul Bagadia
    I got that to by writting the expression in'( )' and using <> sign; but now m not getting equal to sign.
    use NOT keyword..for example, 'if not a=b and not a=c then ...'

    Comment

    • jg007
      Contributor
      • Mar 2008
      • 283

      #32
      Originally posted by Parul Bagadia
      Am unable to do inno.length..
      The compiler is showing error.
      Is it the wrong way or sth else..
      what error message are you getting though ????

      Comment

      • Parul Bagadia
        New Member
        • Mar 2008
        • 188

        #33
        Originally posted by jg007
        what error message are you getting though ????
        I got an error as invalid qualifier. For that i used
        Code:
        len(inno)
        ; and got no error.

        Comment

        • Parul Bagadia
          New Member
          • Mar 2008
          • 188

          #34
          Finally i have reached till converting my no. in desired base; but now the problem is my output is stored in an array of string and i dont know how will i print it in VB.
          I used print statement; nothing happened, compiler didnt even show the error message, but nothing happened as well.
          I want the output in text2.text(a text box), so i directly used a for loop.
          Right now my desired number is in reminder....
          But still its not working, data type of both text2.text and reminder which is an array is string.
          Can someone spot what should be the changes?
          Code:
          k = j - 1
          For i = 0 To j - 1
            Text2.Text = reminder(k)
            k = k - 1
          Next i

          Comment

          • Parul Bagadia
            New Member
            • Mar 2008
            • 188

            #35
            I used Debug.Print as well; but its printing the number in debugger.
            This is quite important to me.
            Someone if knows tell me how to print an array in text box

            Comment

            • Parul Bagadia
              New Member
              • Mar 2008
              • 188

              #36
              I even tried to convert an array in string using Join but; it was giving random answers...... I need to know how do we display an array in Textbox.. Can someone tell me?

              Comment

              • juunas
                New Member
                • Nov 2008
                • 1

                #37
                I have something to say about this code:
                Code:
                For i = 0 To 9
                If (inno(i) >= 0 And inno(i) <= 9) Then
                This was really weird, because you can't input anything else than a 10-digit number. I guess you need an array.

                An array is created like this:

                Dim numbers(0 To 9) As Integer

                EDIT: Oh, and to answer your question, use something like this:
                Code:
                For i = 0 To 9
                Text2.Text = Text2.Text & Array(i)
                Next
                Hope this helps you.
                Last edited by juunas; Nov 27 '08, 07:51 PM. Reason: Answering the question at hand.

                Comment

                Working...