Sign in to follow this  
Followers 0
Felix.Intern

Is Au3 Supporting Something Like Define?

8 posts in this topic

Hi,

Is AU3 supporting something like DEFINE?

Thank you

Felix

Share this post


Link to post
Share on other sites



HI,

define what? variable?

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

sorry,

what i mean is a define like:

ORANGE=0

TREE=1

APPLE=2

that i can from now on ORANGE as 0, TREE as a 1 and so on.

Thanks

Share this post


Link to post
Share on other sites

Hi,

I still don't get it. :(

Something like:

$orange = 1
$banana = 2
MsgBox(64, "Fruits", $orange & " " & $banana)

:)

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

in C++ i can define:

APPLE = 0

BANNANE = 1

than use a "Name" as a Interger

int Obst = BANNANE

Than in a Case Structure i can decide like

case 1 ( 1 = OBST )

{Das heisst der Kompiler macht nichts anderes als fuer jedes BANNANE eine 1, fuer den APPLE eine 0 usw einzusetzten }

Share this post


Link to post
Share on other sites

Thank you, i'll do this.

Felix

Share this post


Link to post
Share on other sites

Add for what you are trying to do, Enum is what you want:

Enum $APPLE, $ORANGE, $PEAR, $GRAPE

Apple will be 0, orange will be 1 and so on.

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