Jump to content

Why isn't this working guys? Random text to message box

Recommended Posts

  • Moderators

Three things I see at a glance:

  • You are using Random incorrectly; the parameters are not enclosed in (). Look at the help file for Random to see how it should be written.
  • Your For loop is wrong - the syntax is For $i = x to y: you are missing the To.
  • _FileReadToArray returns an array with the length at index 0. So rather than For $i = 1 to ($aInput) - 1 (which should be For $i = 1 to Ubound($aInput) - 1), you would simply do For $i = 1 to $aInput[0]

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...