2,723
社区成员
发帖
与我相关
我的任务
分享
m.nStart = 1
m.cITag = ""
m.cTable = ""
m.cRTag = ""
lcStr=""
Do While m.nStart <= Len(Property)
nSize = CToBin(Substr(property,m.nStart,4),'4rs')
m.nKey = CToBin(Substr(Property, m.nStart + 6, 1),'1rs')
lcStr=lcStr+Transform(nSize)+Transform(CToBin(Substr(property,m.nStart + 4,2),'2rs'))+Transform(m.nKey)+Substr(Property, m.nStart + 7, m.nSize - 8)
Do Case
Case m.nKey = 13
m.cITag = Substr(Property, m.nStart + 7, m.nSize - 8)
Case m.nKey = 18
m.cTable = Substr(Property, m.nStart + 7, m.nSize - 8)
Case m.nKey = 19
m.cRTag = Substr(Property, m.nStart + 7, m.nSize - 8)
Endcase
m.nStart = m.nStart + m.nSize
Enddo
?lcStr
?m.cTable
?m.cITag
?m.cRTag
Close Databases
Open Database (Home(2) + 'Data\testdata')
Use Customer && Open customer table
Clear
For nCount = 1 To Tagcount( )
If !Empty(Tag(nCount)) && Checks for tags in the index
? Tag(nCount) + ' ' && Display tag name
?? Key(nCount) && Display index expression
Else
Exit && Exit the loop when no more tags are found
Endif
Endfor