Jump to content

multiple variable in one


name15
 Share

Recommended Posts

I believe what you're referring to is something called an array, it would be set up like:

Global $array[3] = ["Sally", "Bill", "Joe"]

with something like this, you have the single variable "$array", which contains multiple things, so, $array[0] will be the string "Sally", $array[1] will be "Bill", and $array[2] will be "Joe".

Link to comment
Share on other sites

can i use multiple variable in one

like

$I = $O or $P or $I or $L

Not quite, but I'm not sure what you were imagining. Many values are made up of several individual values and what you are asking for is actually quite common.

As an example, suppose for simplicity the possible values of $O, $P, $I and $L are all the same at 0 to 99.

Then another variable $X could contain all those values like this

$X = $O + 200*$P + 10000* $I + 1000000* $L

From the value of $X you can work out the value of any of the others.

To actually use a boolean Or operation to get the combined value you would need to ensure that there was no overlap in the bit values

$X = BitOr($O + 2^8*$P + 2^16* $I + 2^24* $L)

though by now I might have stopped making sense :mellow:

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

Well, you could try... Why do you need to do this? So I could point you in the right direction.

For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Link to comment
Share on other sites

@name15:

Not confused enough yet? Don't forget DLL structs and associative arrays (scripting dictionaries).

:mellow:

All seriousness aside, the question is too vague to answer effectively.

:(

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...