Home page  
Help >
ddlDataErrorCallback() - post Data Error callback
Version 7.11
ddlDataErrorCallback() - post Data Error callback ddlDataErrorCallback() - post Data Error callback

Prototype:
   void ddlDataErrorCallback(
      CONTROL *ctl,
      WtCastPtr UserWord,
      DataErrorRtn UserDataError);
 
      typedef void (STDCALL *DataErrorRtn)(
         WtCastPtr UserWord,           /* [IN] UserWord from ddlDataErrorCallback() */
         char *DataErrorMessage);      /* [IN] Data Error message */
Description:
ddlDataErrorCallback() posts a callback to be used with subsequent calls to Thunderbolt API functions. In general, the DataError messages are used to notify the caller of data conversion errors.

The ddlDataErrorCallback() function with a null UserDataError parameter cancels any Data Error callback.

The DataErrorMessage parameter to the callback contains the offending column name; and it may contain the offending table name and record number.

Note that there may be multiple Data Error messages for a single TB API function call.


Values returned in Control Structure:
Control.Ans1 NA
Control.Ans2 Previous DataError Callback pointer (cast as 32 bit int)
Control.Ans3 Previous DataError Callback UserWord (cast as 32 bit int)
Control.Ans2L Previous DataError Callback pointer (cast as 64 bit int)
Control.Ans3L Previous DataError Callback UserWord (cast as 64 bit int)

Copyright © 2019 , WhamTech, Inc.  All rights reserved. This document is provided for information purposes only and the contents hereof are subject to change without notice. Names may be trademarks of their respective owners.