Results 1 to 4 of 4

Thread: multi loop file wnot work

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2013
    Posts
    183

    multi loop file wnot work

    hello members

    my file is not working check its what wrong

    Number = 1
    While Number <= 12
    filesave = Text5.Text + "_" + Number
    Print filesave
    Number = Number + 1
    Wend

  2. #2
    gibra
    Guest

    Re: multi loop file wnot work

    Where is the file ?
    Last edited by gibra; Jul 25th, 2018 at 01:42 AM.

  3. #3
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    4,418

    Re: multi loop file wnot work

    Read up on which operator to use for concatenating strings.....
    Last edited by Zvoni; Tomorrow at 31:69 PM.
    ----------------------------------------------------------------------------------------

    One System to rule them all, One Code to find them,
    One IDE to bring them all, and to the Framework bind them,
    in the Land of Redmond, where the Windows lie
    ---------------------------------------------------------------------------------
    People call me crazy because i'm jumping out of perfectly fine airplanes.
    ---------------------------------------------------------------------------------
    Code is like a joke: If you have to explain it, it's bad

  4. #4
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,205

    Re: multi loop file wnot work

    Are you sure it is not working?
    That code would print the text directly to the form where the code resides starting in the top left corner. If you have stuff on the form it could be printing and you not see it.

    That said you should as mentioned above read up on proper concatenation methods and also how to use a For Next loop. While Wend is almost never used by experienced VB guys.

    Also note that when you have an issue you should describe your issue not working is not a good description as it can mean almost anything from getting output other than what was expected to a hard crash. Always describe you problem, make note of any error messages and which line they occur on. This will help others help you.
    Last edited by DataMiser; Jul 25th, 2018 at 07:26 AM.

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