SnipforgeThis extension provide some snippets of the code Intersystems IRIS for you. Use Ctrl + Space in your classes (objectscript) for view help codes. XData
Route
ListOfDataTypesCreate a new instance of %Library.ListOfDataTypes. DynamicArrayCreate a new instance of %Library.DynamicArray. DynamicObjectCreate a new instance of %Library.DynamicObject. SQL StatementPrepare and execute a SQL statement. While
SQLDefine SQL table structure. ThrowThrow an error with a specific status code and message. TryCatchHandle exceptions in a try-catch block. SystemGet error text from status code. Class
Parse
HeaderGET request header. ParamGET request parameter. $$$ERRORCreate error with arguments. $$$FormatMessageGet localized message with args. $$$FormatTextHTMLReplace and escape HTML. $$$FormatTextJSReplace and escape JavaScript. $$$GETERRORCODEGet error code. $$$GETERRORMESSAGEGet part of error message. $$$ISERRTrue if status is error. $$$ISOKTrue if status is OK. $$$LOWERConvert to lowercase. $$$OKSuccess status. $$$TextLocalized runtime message. $$$TextHTMLLocalized HTML-escaped message. $$$TextJSLocalized JS-escaped message. $$$ThrowOnErrorThrow if error. $$$THROWONERRORThrow if expression errors. $$$ThrowSQLCODEThrow SQL exception. $$$ThrowSQLIfErrorThrow if SQL error. $$$ThrowStatusThrow given status. $$$UPPERConvert to uppercase. |