pb錯誤程式碼詳解

kaiyinkaiyin發表於2007-10-25
常見pb錯誤程式碼說明[@more@]

string ls_msg
choose case error.number
case 1//by zero
ls_msg = "發生被0除錯誤"
case 2//2 Null object reference
ls_msg = "空物件引用"
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 = "空物件引用不能賦值或傳遞給一個這種型別的變數"
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 = "函式/事件的引數列表錯誤"

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10957369/viewspace-978515/,如需轉載,請註明出處,否則將追究法律責任。

相關文章