In other news, having problems with the squirrel array.find function not working, giving a bad index error. Is that function supported in CB?
Example code?
Are you using standard squirrel arrays or some wxWidgets binding?
In other news, having problems with the squirrel array.find function not working, giving a bad index error. Is that function supported in CB?
Example code?
Are you using standard squirrel arrays or some wxWidgets binding?
Standard squirrel array, here some C&P from the wizard, not the actual code, and not tried to see if it works, but exactly same syntax as using in actual wizard.
selectedLibraries<-array(0);
function fred()
{
selectedLibraries.append(1);
selectedLibraries.append(3);
selectedLibraries.append(5);
local idx = selectedLibraries.find(5); <<<<<<<< Gives a squirrel index [find] not found sort of error
}
sadly we are using squirrel 2.2.5 and there the find methode does not exists...
@obfuscate: what about updating squirrel, without going to sqrat? Squirrel is now at 3.1 with tons of fixes and additions. 2.2 is 8 years old...
I've also found that the string.slice funcion appears to be missing (same error) but that should be in Squirrel 2.2 which is odd.
local s = _T("abcdefghijklmnop");
local s2 = s.slice(0,5); <<<<<<<<< AN ERROR HAS OCCURED [the index 'slice' does not exist]