Integer. Returns 1 if it succeeds and a negative number if an error occurs.
Error values are:
-1 Pipe open failed
-2 Too many columns
-3 Table already exists
-4 Table does not exist
-5 Missing connection
-6 Wrong arguments
-7 Column mismatch
-8 Fatal SQL error in source
-9 Fatal SQL error in destination
-10 Maximum number of errors exceeded
-12 Bad table syntax
-13 Key required but not supplied
-15 Pipe already in progress
-16 Error in source database
-17 Error in destination database
-18 Destination database is read-only
If any argument's value is NULL, Start returns NULL.
String ls_errortext
IF IsNull( ai_ErrCode ) THEN
ls_errortext = "传递了空参数!"
RETURN ''
END IF
CHOOSE CASE ai_ErrCode
CASE - 1
ls_errortext = "数据管道打开错误!请检查所有的对象是否有效.错误代码:" + String( ai_ErrCode )
CASE - 2
ls_errortext = "列数超过上限!错误代码:" + String( ai_ErrCode )
CASE - 3
ls_errortext = "目的表已存在!错误代码:" + String( ai_ErrCode )
CASE - 4
ls_errortext = "目的表不存在!错误代码:" + String( ai_ErrCode )
CASE - 5 //common start()函数与repair()函数公用错误代码
ls_errortext = "连接被断开!错误代码:" + String( ai_ErrCode )
CASE - 6
ls_errortext = "错误参数!"
CASE - 7
ls_errortext = "列类型不匹配!错误代码:" + String( ai_ErrCode )
CASE - 8
ls_errortext = "源SQL语法错误!错误代码:" + String( ai_ErrCode )
CASE - 9 //common
ls_errortext = "目的SQL语法错误!错误代码:" + String( ai_ErrCode )
CASE - 10 //common
ls_errortext = "发生错误个数超过最大界定错误数!错误代码:" + String( ai_ErrCode )
CASE - 11 //repair专用错误代码
ls_errortext = "无效的窗口句柄!错误代码:" + String( ai_ErrCode )
CASE - 12 //common
ls_errortext = "错误的表语法!错误代码:" + String( ai_ErrCode )
CASE - 13
ls_errortext = "空的主键值!错误代码:" + String( ai_ErrCode )
CASE - 15 //common
ls_errortext = "该数据管道已打开!错误代码:" + String( ai_ErrCode )
CASE - 16
ls_errortext = "错误发生在源数据库!错误代码:" + String( ai_ErrCode )
CASE - 17 //common
ls_errortext = "错误发生在目的数据库!错误代码:" + String( ai_ErrCode )
CASE - 18 //common
ls_errortext = "目标数据库只读!错误代码:" + String( ai_ErrCode )
END CHOOSE
RETURN ls_errortext
Error values are:
-1 Pipe open failed
-2 Too many columns
-3 Table already exists
-4 Table does not exist
-5 Missing connection
-6 Wrong arguments
-7 Column mismatch
-8 Fatal SQL error in source
-9 Fatal SQL error in destination
-10 Maximum number of errors exceeded
-12 Bad table syntax
-13 Key required but not supplied
-15 Pipe already in progress
-16 Error in source database
-17 Error in destination database
-18 Destination database is read-only
If any argument's value is NULL, Start returns NULL.
String ls_errortext
IF IsNull( ai_ErrCode ) THEN
ls_errortext = "传递了空参数!"
RETURN ''
END IF
CHOOSE CASE ai_ErrCode
CASE - 1
ls_errortext = "数据管道打开错误!请检查所有的对象是否有效.错误代码:" + String( ai_ErrCode )
CASE - 2
ls_errortext = "列数超过上限!错误代码:" + String( ai_ErrCode )
CASE - 3
ls_errortext = "目的表已存在!错误代码:" + String( ai_ErrCode )
CASE - 4
ls_errortext = "目的表不存在!错误代码:" + String( ai_ErrCode )
CASE - 5 //common start()函数与repair()函数公用错误代码
ls_errortext = "连接被断开!错误代码:" + String( ai_ErrCode )
CASE - 6
ls_errortext = "错误参数!"
CASE - 7
ls_errortext = "列类型不匹配!错误代码:" + String( ai_ErrCode )
CASE - 8
ls_errortext = "源SQL语法错误!错误代码:" + String( ai_ErrCode )
CASE - 9 //common
ls_errortext = "目的SQL语法错误!错误代码:" + String( ai_ErrCode )
CASE - 10 //common
ls_errortext = "发生错误个数超过最大界定错误数!错误代码:" + String( ai_ErrCode )
CASE - 11 //repair专用错误代码
ls_errortext = "无效的窗口句柄!错误代码:" + String( ai_ErrCode )
CASE - 12 //common
ls_errortext = "错误的表语法!错误代码:" + String( ai_ErrCode )
CASE - 13
ls_errortext = "空的主键值!错误代码:" + String( ai_ErrCode )
CASE - 15 //common
ls_errortext = "该数据管道已打开!错误代码:" + String( ai_ErrCode )
CASE - 16
ls_errortext = "错误发生在源数据库!错误代码:" + String( ai_ErrCode )
CASE - 17 //common
ls_errortext = "错误发生在目的数据库!错误代码:" + String( ai_ErrCode )
CASE - 18 //common
ls_errortext = "目标数据库只读!错误代码:" + String( ai_ErrCode )
END CHOOSE
RETURN ls_errortext