This script worked in Sage 100 Adv, but with Premium and no change, it completes SUCCESSFULLY then we get the "Error 20 (Syntax error) in Method HandleScriptUI Statement 1872"
AFTER the last line of the PLINES "Panel - OnExit" UI script. Ideas anyone?
The script adds a line to the receipt lines. All functions return retVal = 1. All diagnostic messages show normal operation and exit through last line of script (which is a DebugPrint showing retVals = 1).
Relevant code (works if removed);
nAmountPosted = (CC_FEE/100) * nTotal_Fee_able
retVal1 = oLines.AddLine()
retVal2 = oLines.SetValue("LineType$", "G")
retVal4 = oLines.SetValue("AccountKey$", sSY_CC_FEE_ACCT_KEY)
retVal5 = oLines.SetValue("AmountPosted", Round(nAmountPosted,2))
retVal6 = oLines.Write()
oScript.LinesAdded = 1
------------------------------
Dan Burleson
Software Consultant
Connex Software
Corvallis OR
541-224-6642
------------------------------