'$include "DpConst.sbh"
6hI \8n0v
^f#V051Testing软件测试网
gO9S[-_Declare Function LCSdatapool_open Lib "rtlcs.dll" (ByVal pszDpName$, ByVal dwFlags&) As Long
C7W!Z9?4eo0Declare Function TSSErrorDetail Lib "rttss.dll" (ByVal pszErrText$, dwLen&) As Long
51Testing软件测试网:x.i?,l"cConst SQA_DP_WRAP = &H00000002
51Testing软件测试网/\b uX0\t+Y+u:WConst SQA_DP_NOWRAP = &H00000020
a
i ir%cn2M:wL*Fu0Const SQA_DP_SHARED = &H00000004
51Testing软件测试网pX%d2[l\hConst SQA_DP_PRIVATE = &H00000040
:h*eZ}u0/N8MZ-Z'Lbn
t"e-i
V0' The last error number returned from the LCSdatapool_position_value and
51Testing软件测试网
{w+u5]j4P)AkX' LCSdatapool_name_value functions.
#_*p7E(]%n V _*@/B0Const LCS_LAST_VALUE_ERROR = -3
cnY UK&Z0)R!^xR8GhD0Declare Function LCSdatapool_position_value Lib "rtlcs.dll" (ByVal dwDpId&, ByVal dwColIndex&) As Long
}X1tv
ecq0Declare Function LCSdatapool_name_value Lib "rtlcs.dll" (ByVal dwDpId&, ByVal sColName As String) As Long
X7x8LG.J/Y~m0Declare Function Dplstrlen Lib "kernel32" Alias "lstrlenA" (ByVal lpString As Long) As Long
51Testing软件测试网.c \Eh`*e IaDeclare Function Dplstrcpy Lib "kernel32" Alias "lstrcpyA" (ByVal lpString1 As String, ByVal lpString2 As Long) As Long
51Testing软件测试网.RF
R {D eY0o51Testing软件测试网5sS K[&X' ----------------------------------------------------------------------------
51Testing软件测试网)WsB!gyConst SQA_DIR_RUNFILES = 1 ' Install Directory
51Testing软件测试网Ql PY
m!l/m-j
[ u/\(i
M/q;y%Uk\)fD0Declare Function UTLGetDir Lib "rtxutil.dll" (ByVal DirType%, ByVal lpszPath$, ByVal cch&) As Integer
O2EaD_c0Function SQAGetDir (iDirType as Integer) as String
_"M
kioK$L]0 ' Returns standard directories used by
SQA Suite apps
51Testing软件测试网cd$Ia4{ Dim sDirPath as String, Result as Integer
,GBU,[4kd9}0 sDirPath = Space$(260)
51Testing软件测试网;lmWqG7Z Result = UTLGetDir(iDirType, sDirPath, 260)
(t_.p$\:xtz!k4}W0 sDirPath = Left$(sDirPath, InStr(sDirPath,Chr$(0)) - 1)
(}C"i)SD&C|Wz2r0 If (Right$(sDirPath, 1) <> "\") Then sDirPath = sDirPath + "\"
51Testing软件测试网X4FsYM:z|4mU} SQAGetDir = sDirPath
#QKu
f4[3c0End Function
51Testing软件测试网NUFK Ej+d' ----------------------------------------------------------------------------
51Testing软件测试网
kYj0`m`T&a%]Function SQAGetPropertyNames( objectRec As String, propertyNames() as String) As Integer
H&Ja9c|-ax0QZ p0 Dim ret%
C`i9\.],u9RY+s0 Dim sList as Variant
51Testing软件测试网(}'E+\a9@V!P(Qa ret = SQAGetPropertyList( objectRec, sList)
51Testing软件测试网UAa
Z
W If ret <> sqaSuccess Then
51Testing软件测试网B6\Y;\#Q SQAGetPropertyNames = ret
[]
f"xTICrjd0 Exit Function
51Testing软件测试网3`x:| rj"G| End If
0|GY\
cZ"vo&W0 51Testing软件测试网fkM+Lh"y Dim cObj%
h&f{/M B&C}0 cObj = SQAGetListCount( sList )
51Testing软件测试网6NS^ _d
f%f-D ReDim propertyNames( 0 To cObj-1 )
51Testing软件测试网,y'? p_%w