Sign in to follow this  
Followers 0
Shibuya

#include statements in Functions

4 posts in this topic

Can I put #include<file> into Functions?

I tried to do one today and it gave me errors

;)


The speed of sound is defined by the distance from door to computer divided by the time interval needed to close the media player and pull up your pants when your mom shouts "OH MY GOD WHAT ARE YOU DOING!!!"

Share this post


Link to post
Share on other sites



You can do #include-once<>

Remember that you CANNOT use variables in pre-processor statements (ie. anything starting with #).


Writing AutoIt scripts since
_DateAdd("d", -2, _NowCalcDate())

Share this post


Link to post
Share on other sites

You can do #include-once<>

Remember that you CANNOT use variables in pre-processor statements (ie. anything starting with #).

hmmm...i don't really get what you're saying

#include-once did remove the errors, but the script isn't working

I've switched to using If-else statements, but seems like I can't use #include statements in it as well


The speed of sound is defined by the distance from door to computer divided by the time interval needed to close the media player and pull up your pants when your mom shouts "OH MY GOD WHAT ARE YOU DOING!!!"

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Can I put #include<file> into Functions?

I tried to do one today and it gave me errors

;)

Yes you can... BUT:

When your file which is included contain another Func...EndFunc, you obviously get an Error because you cannot have a Function inside another Function... its as simple as that .....

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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