- Code: Select all
pipCost = core.host:findTable("offers"):find("Instrument", instance.bid:instrument()).PipCost;
I do this in the Prepare() function.
Moderator: admin
pipCost = core.host:findTable("offers"):find("Instrument", instance.bid:instrument()).PipCost;
Thank you for the report, we will investigate the issue.
Are you saying I should look up PipCost whenever I want to use it? That would be every time ExtUpdate runs.
local pipCost;
function ExtUpdate(...)
if pipCost == nil then
pipCost = core.host:findTable("offers"):find("Instrument", instance.bid:instrument()).PipCost;
end
...
stopLevel = instance.parameters.SL;
Users browsing this forum: No registered users and 24 guests