Functions.VoDbFieldInfo 方法 (UInt32, UInt32, __Usual) |
命名空间: XSharp.RT
FUNCTION VoDbFieldInfo( kInfoType AS DWORD, wFieldPos AS DWORD, ptrRetVal REF USUAL ) AS LOGIC
1FUNCTION ShowFieldInfo(wField AS WORD) AS VOID 2 LOCAL uResult AS USUAL 3 uResult := NIL 4 IF VODBFieldInfo(DBS_NAME, wField, @uResult) 5 ? "FieldName(): ", uResult 6 ELSE 7 DoError() 8 ENDIF 9 IF VODBFieldInfo(DBS_TYPE, wField, @uResult) 10 ? "字段类型: ", uResult 11 ELSE 12 DoError() 13 ENDIF 14 IF VODBFieldInfo(DBS_LEN, wField, @uResult) 15 ? "字段长度: ", uResult 16 ELSE 17 DoError() 18 ENDIF 19 IF VODBFieldInfo(DBS_DEC, wField, @uResult) 20 ? "小数位数: ", uResult 21 ELSE 22 DoError() 23 ENDIF 24 RETURN 25STATIC FUNCTION DoError() AS USUAL 26 LOCAL uRetCode AS USUAL 27 LOCAL oError AS USUAL 28 oError := ErrorBuild(@strucErrInfo) 29 oError:FuncSym := #VODBFieldInfo 30 RETURN EVAL(ErrorBlock(), oError)