string ls_msg
choose case error.number
case 1//by zero
ls_msg = "發生被 0 除錯誤"
case 2//2 Null object reference
ls_msg = "Null 物件引用"
case 3//3 Array boundary exceeded
ls_msg = "數組越界"
case 4//4 Enumerated value is out of range for function
ls_msg = "枚舉值超出函數的範圍"
case 5//5 Negative value encountered in function
ls_msg = "函數中遇到負數"
case 6//6 Invalid DataWindow row/column specified
ls_msg = "資料視窗的列或行非法"
case 7//7 Unresolvable external when linking reference
ls_msg = "連結調用時不能解決外部對象"
case 8//8 Reference of array with null subscript
ls_msg = "使用空下標引用數組"
case 9//9 DLL function not found in current application
ls_msg = "當前應用中沒有找到動態連結程式庫的函數"
case 10//10 Unsupported argument type in DLL function
ls_msg = "使用了動態連結程式庫函數不支援的參數類型"
case 11//11 Object file is out of date and must be converted to current version
ls_msg = "對象檔案已經過時並且必須使用當前的版本"
case 12//12 DataWindow column type does not match GetItem type
ls_msg = "資料視窗的列的資料類型與GetItem函數的類型不符"
case 13//13 Unresolved property reference
ls_msg = "屬性引用尚未解決"
case 14//14 Error opening DLL library for external function
ls_msg = "為外部函數調用而開啟動態連結程式庫時發生錯誤"
case 15//15 Error calling external function name
ls_msg = "調用外部函數時發生錯誤"
case 16//16 Maximum string size exceeded
ls_msg = "字串長度超越了最大**"
case 17//17 DataWindow referenced in DataWindow object does not exist
ls_msg = "資料視窗引用的資料視窗對象不存在"
case 18//18 Function doesn't return value
ls_msg = "函數沒有傳回值(應該有而沒有)"
case 19//19 Cannot convert name in Any variable to name
ls_msg = "不能轉換Any類型的變數到另一個類型"
case 20//20 Database command has not been successfully prepared
ls_msg = "資料庫命令沒有成功準備"
case 21//21 Bad runtime function reference
ls_msg = "引用了錯誤的運行時函數"
case 22//22 Unknown object type
ls_msg = "不知道的物件類型"
case 23//23 Cannot assign object of type name to variable of type name
ls_msg = "不能將對象賦給變數,兩種類型不能賦值"
case 24//24 Function call doesn't match its definition
ls_msg = "函數調用格式與其定義不一致"
case 25//25 Double or Real expression has overflowed
ls_msg = "雙精確度型或實型運算式溢出"
case 26//26 Field name assignment not supported
ls_msg = "不支援這種欄位賦值"
case 27//27 Cannot take a negative to a noninteger power
ls_msg = "不能計算一個負數的非整數次方"
case 28//28 VBX Error: name
ls_msg = "VBX 錯誤"
case 29//29 Nonarray expected in ANY variable
ls_msg = "ANY 類型變數期待非數群組類型"
case 30//30 External object does not support data type name
ls_msg = "外部對象不支援這種變數類型"
case 31//31 External object data type name not supported
ls_msg = "外部對象的資料類型不支援"
case 32//32 Name not found calling external object function name
ls_msg = "調用外部對象函數時函數名稱沒有找到"
case 33//33 Invalid parameter type calling external object function name
ls_msg = "調用外部對象函數時使用了錯誤的參數類型"
case 34//34 Incorrect number of parameters calling external object function name
ls_msg = "調用外部對象函數時使用的參數個數不對"
case 35//35 Error calling external object function name
ls_msg = "調用外部對象的函數錯誤"
case 36//36 Name not found accessing external object property name
ls_msg = "訪問外部對象屬性時屬性名稱沒有找到"
case 37//37 Type mismatch accessing external object property name
ls_msg = "訪問外部對象屬性時使用了不匹配的類型"
case 38//38 Incorrect number of subscripts accessing external object property name
ls_msg = "訪問外部對象屬性時使用了錯誤的下標"
case 39//39 Error accessing external object property name
ls_msg = "訪問外部對象的屬性錯誤"
case 40//40 Mismatched ANY data types in expression
ls_msg = "運算式中ANY資料類型不匹配"
case 41//41 Illegal ANY data type in expression
ls_msg = "運算式中使用了非法的ANY資料類型"
case 42//42 Specified argument type differs from required argument type at runtime in DLL function name
ls_msg = "指定的參數類型與動態連結程式庫中的函數所需要的參數類型不一致"
case 43//43 Parent object doesn't exist
ls_msg = "父物件不存在"
case 44//44 Function has conflicting argument or return type in ancestor
ls_msg = "函數與祖先的參數或傳回值衝突"
case 45//45 Internal table overflow; maximum number of objects exceeded
ls_msg = "內部表溢出;對象的最大數目已經超越"
case 46//46 Null object reference cannot be assigned or passed to a variable of this type
ls_msg = "Null 物件引用不能賦值或傳遞給一個這種類型的變數"
case 47//47 Array expected in ANY variable
ls_msg = "ANY類型期待數組"
case 48//48 Size mismatch in array to object conversion
ls_msg = "將數群組轉換成對象時數組的大小不匹配"
case 49//49 Type mismatch in array to object conversion
ls_msg = "將數群組轉換成對象不匹配"
case 50//50 Distributed Service Error
ls_msg = "分布式服務錯誤"
case 51//51 Bad argument list for function/event
ls_msg = "函數/事件的參數列表錯誤"
case 52//52 Distributed Communications Error
ls_msg = "分布式通訊錯誤"
case 53//53 Requested server not active
ls_msg = "被請求的伺服器沒有啟用"
case 54//54 Server not accepting requests
ls_msg = "伺服器不接受請求"
case 55//55 Request terminated abnormally
ls_msg = "請求意外中斷"
case 56//56 Response to request incomplete
ls_msg = "響應請求不完整"
case 57//57 Not connected
ls_msg = "沒有串連"
case 58//58 Object instance does not exist
ls_msg = "對象執行個體不存在"
case 59//59 Invalid column range
ls_msg = "無效的列的範圍"
case 60//60 Invalid row range
ls_msg = "無效的行的範圍"
case 61//61 Invalid conversion of number dimensional array to object
ls_msg = "轉換**數組到一個對象無效"
case 62//62 Server busy
ls_msg = "伺服器忙"
case 63//63 Function/event with no return value used in expression
ls_msg = "在運算式中函數/事件沒有傳回值"
case 64//64 Object array expected in left side of assignment
ls_msg = "指派陳述式左邊期待對象數組"
case 65//65 Dynamic function not found. Possible causes include: pass by value/reference mismatch
ls_msg = "動態函數沒有找到,可能是因為:值傳遞/引用傳遞不匹配"
case 66//66 Invalid subscript for array index operation
ls_msg = "屬組索引使用了非法的下標"
case 67//67 NULL object reference cannot be assigned or passed to an autoinstantiate
ls_msg = "空的對象引用不能賦值或傳遞給一個自動執行個體化對象"
case 68//68 NULL object reference cannot be passed to external DLL function name
ls_msg = "空的對象引用不能傳遞給外部動態連結程式庫函數"
case 69//69 Function name cannot be called from a secured runtime session
ls_msg = "安全模式中不能調用該函數"
case 70//70 External DLL function name cannot be called from a secured runtime session
ls_msg = "安全模式中不能調用外部動態連結程式庫函數"
case 71//71 General protection fault occurred
ls_msg = "發生一般的保護錯誤"
case 72//72 name failed with an operating system error code of number
ls_msg = "欄位發生一個作業系統錯誤"
case 73//73 Reference parameters cannot be passed to an asynchronous shared/remote object method
ls_msg = "引用型參數不能傳遞給一個非同步共用/遠程對象方法"
case 74//74 Reference parameters cannot be passed to a shared object method
ls_msg = "引用型參數不能傳遞給一個共用對象的方法"
case 75//75 The server has forced the client to disconnect
ls_msg = "伺服器已經強制用戶端中斷連線"
case 76//76 Passing NULL as a parameter to external function name
ls_msg = "給外部函數傳遞了一個空值參數"
case 77//77 Object passed to shared/remote object method is not a nonvisual user object
ls_msg = "對象傳遞給共用/遠程對象的方法不是一個不可視的使用者物件"
case 78//78 Listen can only be done in Enterprise version of PowerBuilder
ls_msg = "本人只能在企業版的PowerBuilder中使用"
case 79//79 The argument to name must be an array
ls_msg = "參數必須是一個數組"
case 80//80 The server has timed out the client connection
ls_msg = "用戶端嘗試串連的時間已經超出伺服器設定的**時間"
case 81//81 Function argument file creator must be a four character string
ls_msg = "函數參數檔案建立者必須是一個四個字元的字串"
case 82//82 Function argument file type must be a four character string
ls_msg = "函數參數檔案類型必須是一個四個字元的字串"
case 83//83 Attempt to invoke a function or event that is not accessible
ls_msg = "試圖調用一個不可存取的函數或事件"
case 84//84 Wrong number of arguments passed to function/event call
ls_msg = "在函數/事件中傳遞的參數個數錯誤"
case 85//85 Error in reference argument passed in function/event call
ls_msg = "在函數/事件中傳遞的引用型參數錯誤"
case 86//86 Ambiguous function/event reference
ls_msg = "引用不明確的函數/事件"
case 87//87 The connection to the server has been lost
ls_msg = "與伺服器的串連已經丟失"
case 88//88 Cannot ask for ClassDefinition Information on open painter: name
ls_msg = "不能在開啟的畫筆中查詢類定義資訊"
case 85//89 5.0 style proxy objects are not supported. Copy the new style proxy that was generated at migration time
ls_msg = "5.0中的類型代理對象不支援,拷貝移植時產生的新的類型代理"
case 90//90 Cannot assign array of type name to variable of type array of name
ls_msg = "這兩種資料類型的數組不能賦值"
case 91//91 Cannot convert any in Any variable to string.Possible cause uninitialized value.
ls_msg = "不能將任意型變數轉變成字元型變數"
case else
ls_msg = '未知錯誤, 請記錄錯誤號碼並與管理員聯絡'
end choose