NumToString

Since WX treats screen controls as strings (including columns of a table)

Trace(NumToString(COL_HstInvHdrSysId,"012d"))

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 000000123456

Now, back to your regular schedule program….

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s