Welcome to the Indigo Rose Software discussion forums! You will need to sign up for a forum account and login before you can post. Need help? View the Forum FAQ.
I had an old program that worked fine in APMS7 - I opened it and converted it to work in APMS 8.5 but I get errors with this line that starts with 'for':
Code:
function ClearAllInputObjects()
-- get a listing of all objects on the page
tObjects = Page.EnumerateObjects();
-- step through the returned table
for nIndex, sObjectName in tObjects do
-- get the type of the current object
nObjectType = Page.GetObjectType(sObjectName);
-- check the type
if nObjectType == 7 then
-- input object, clear it
Input.SetText(sObjectName, "");
end
end
end
The error is in this line:
for nIndex, sObjectName in tObjects do
What's changed between LUA that worked in APMS7 but not in APMS8.5?
Leave a comment: