I am writting a function which can have up to 30 parameters passed to it and since I don't know of all the different structures that windows API can create are, I don't know the max amount I should allow for.
Anyway the script looks bulky (check out the subset of it)
Code:
Structure(StructureName
,value1 = False
,value2 = False
,value3 = False
,value4 = False
,value5 = False
,value6 = False
...
,value30 = False)
{
...
}
I think it would be a nice feature if there was a way to indicate to the fuction to load up any remaining parameters into an array variable. Eg.
Code:
Structure(StructureName, [value])
{
..
}
Example of the call
Code:
error := Structure("name" , "one" , "two", "three")
The '[' would indcate an array and in the above example the function would receive the the variables :
StructureName = name
value0 = 3
value1 = one
value2= two
value3 = three
Jerry