Since WX treats screen controls as strings (including columns of a table)
does not work. You don’t get an error, it just doesn’t do anything because it’s not a number. So if COL_HstInvHdrSysId contains 123456 the result will be 123456.
instead you have to do:
nHstInvHdrSysId is int = COL_HstInvHdrSysId Trace(NumToString(nHstInvHdrSysId,"012d"))
Now you will get expected result of 000000123456Now, back to your regular schedule program….