Sign in to follow this  
Followers 0
mpcluever

Variable in the Include line?

2 posts in this topic

#1 ·  Posted (edited)

I'd like to be able to put a variable in the Include line at the top of the script like this

$Company = "RedKing"
#include "C:\Documents and Settings\Matt Cluever\My Documents\Scripts\Include\" & $Company & " Data.au3"

Doesn't seem to be able to accept it. Is this possible?

Nevermind

The filename of the current script to include. Path is optional. This must be a string--it cannot be a variable.

Edited by mpcluever

Share this post


Link to post
Share on other sites



It has to be a string because the includes are processed before the script is run.

Share this post


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
Sign in to follow this  
Followers 0