ADOxtra for Macromedia DirectorDebugging your scripts using ADOxtra
Every ADOxtra wrapper instance has internal last error flag and error description. The last error flag is cleared before any access to the ADO object. If property access or method call failed or another error happened, this flag is raised. So you may detect whether last call completed successfully. Use object.Failed or object.Succeeded properties to check whether the last call was successful. If an error happened you may see its description using object.lastError property.
Also you may adjust ADOxtra wrapper objects to output its lastError directly to the Message window every time error happens. Set object.DebugMode to true (1) to do this. By default, ADOxtra wrappers created by CreateObject call inherit the xtra's default value for debugMode. You may change this default with Init xtra-level method.
Note: While you are just investigating ADO databasing capabilities it is better to set Debug Mode by default, to ensure you always know if something goes wrong.
|