Sign in to follow this  
Followers 0
YozY

include a variable

2 posts in this topic

hi all

I have a problem with including files by using a variable

here's an example:

$main = "main.au3"
#include <$main>

i want something like this but it doesn't work

It always gives me an error saying the file is not found

What am i doing wrong?

Thanks,

YozY

Share this post


Link to post
Share on other sites



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

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