passing an index to a function

alsdk

Well-Known Member
file bubble.iss has only a function that tries to iterate to a given index as argument.
function Sort(index:int Lista)

In a separate file, i have an include to bubble.iss and a call to function Sort: call Sort ${RegionPAs}

Main problem is i cant iterate and use index Lista.


${RegionPAs} it is defined as index int and i can be totally sure its filled during script execution.


Also tried to accept as argument both index and iterator of that index, but no luck (only for try).
 

Attachments

CyberTech

Rest in Peace
Staff member
file bubble.iss has only a function that tries to iterate to a given index as argument.
function Sort(index:int Lista)

In a separate file, i have an include to bubble.iss and a call to function Sort: call Sort ${RegionPAs}

Main problem is i cant iterate and use index Lista.


${RegionPAs} it is defined as index int and i can be totally sure its filled during script execution.


Also tried to accept as argument both index and iterator of that index, but no luck (only for try).
You can't pass an index as a parameter. There is index sort code in evebot if you'd like to use the code.
 
Top Bottom