Waterloo
Posts: 9 since Aug 2009
Thanks Given: 1
Thanks Received: 1
|
Hello
Under TS8 . Is it possible to call a function with optional parameters ?
Ideally, i'd like to call a function with an unlimited amount of params, but this is most probably not supports under EasyLanguage ? ( Under c# we have the "params" keyword to allow this).
My work-around would be to accept an Array as parameter. But i would like users who do not need to send the array to not have to create an empty array and call the function with an empty array.
so basically i'd like to be able to do this :
ret = myFunc();
AND
Array: myArray [2] ("");
myArray[0] = "TestValue";
myArray[1] = "54";
ret = myFunc(myArray);
|