Results 1 to 3 of 3

Thread: Question about my program can't find it

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2010
    Posts
    2

    Question about my program can't find it

    Form

    Code:
        Dim intteller As Integer
        Dim strplaats(5) As String
        Dim intpostcode(5) As Integer
    
           For intteller = 0 To 5
                strplaats(intteller) = InputBox(("Geef de plaats in waar je woont " & intteller + 1 & " in."), "Voer je plaatsnaam in")
                If strnummerplaat(intteller) = "leuven" Then
                    strnummerplaat(intteller) = 0
                    intteller = 5
                Else
                    intpostcode(intteller) = InputBox(("Geef de bijhorende postcode in " & intteller + 1 & " in."), "Postcode")
    
    
            Next
    Afdrukken

    Code:
            
            Rtxtwoning.Text = Rtxtwoning.Text & Space(25) & "Plaats" & Space(5) & "Postcode" & vbCrLf
    
            For intteller = 0 To 5
                Rtxtwoning.Text = Rtxtwoning.Text & "Woning " & intteller + 1 & Space(15) & strplaats(intteller) & Space(10) & intpostcode(intteller)  & vbCrLf
            Next
    The meaning with this is when you type "leuven" it stops with the for next
    that formally works
    But, when you print it it shows "leuven" in the rtxtwoning.
    I want that it doesn't show up anymore.
    And that from this intteller(where leuven should be inputted) after this intteller, nothing will be displayed anymore

    sorry for my broken english

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Question about my program can't find it

    Welcome to the forums
    Quote Originally Posted by mr.ape View Post
    But, when you print it it shows "leuven" in the rtxtwoning
    When you print what?

    The screen?
    The textbox itself?

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2010
    Posts
    2

    Re: Question about my program can't find it

    in the rich textbox

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