Results 1 to 4 of 4

Thread: multi loop file wnot work

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2013

    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

  2. #2
    Frenzied Member gibra's Avatar
    Join Date
    Oct 2009

    Re: multi loop file wnot work

    Where is the file ?

  3. #3
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    To the moon and then left

    Re: multi loop file wnot work

    Read up on which operator to use for concatenating strings.....
    One System to rule them all, One IDE to find them,
    One Code 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.
    For health reasons i try to avoid reading unformatted Code

  4. #4
    Join Date
    Feb 2012
    West Virginia

    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