A list of products available on this site
Documentation for XtraMania's xtras
Prices and links to the online store
Xtras, PDFs, samples
Have a question? Ask us!
Contacts
Logo. www.xtramaina.com  
Home Search E-mail
ADOxtra Usage/Debugging

ADOxtra for Macromedia Director

Debugging 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.

Site homeSearchContact author © Eugene Shoustrov. www.xtramania.com