Among them, & lt; Max> & lt;/max> This is possible, if there is no value, I also need to decide, Numerical length is not sure, at the same time, can be arbitrary length
Refer to
CodePudding user response:
The building Lord consult: & lt;
A=" Max> 1000 & lt;/max>" I=InStr (1, A, & gt; "" 1) + 1 'to determine a "& gt;" The location of the characters behind J=InStr (I, A, & lt; "" ) - I "calculation" & gt;" And "& lt;" The number of characters between If (j=0) Then MsgBox "no data, the label", 64, The Else A=Mid $(A, I, j) MsgBox. A, 64 End the If