Lot's of examples and guides of how to find the array of byte, the issue is with the appending it to the codelist.
One approach to access advanced options via scripting
Code:
function getAdvOpt()
local advopt
for i=0, getFormCount() do
if (getForm(i) and getForm(i).name == 'AdvancedOptions') then
advopt = getForm(i);
end
end
return advopt
end
local ao = getAdvOpt();
for i=0,ao.ComponentCount-1 do
print(ao.Component[i].name,ao.Component[i].caption)
if (ao.Component[i].name == 'Codelist2') then
cl = ao.Component[i] -- the listview object
end
end
But after looking in source it saves the code information inside array, so we can't really modify it using lua, unless we could 'automate' or call the function that appends code to the listview object with our address information. _________________
I'm rusty and getting older, help me re-learn lua.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum