Type Mismatch Error 追蹤
I have a function named ConvertModName. This is in the Label Format Options -> VB Scripting -> Functions and Subs
Then in the OnAutoSelectedEvent script for a text object I have code:
2 意見
Hello Williamc,
The "Functions and Subs" section of the document level VB script (from the "File>BarTender Document Options...") only affects that precise VB Script, it won't be accessible from a data source type VB script or an "OnProcessData" VB script. Note that there are many functions that are only available at the document level (basically anything that modifies an object's properties) and accessing them from other level VB Scripts could potentially cause problems.
Also note that if you are referencing a database field on your code, you'll need to add your code in the "OnNewRecord" event. Using the "OnAutoSelectedEvent" will only allow you to preview the result on screen, but won't be useful at print time.
Regards.
請登入寫評論。