Dim SUB as boolean
Dim DBS as boolean
Dim IDC as boolean
Dim TWB as boolean
I have string like
"[DBS][IDC][TWB]" or "[IDC][TWB]"
These string contains codes [...] but in a different sequence and some codes are in and others are not.
Do Until rst.EOF
strFRM = rst!PWDFRAME
I need to verify if a certain code is available in the string to determine the boolean value of a variable.
If e.g. the code TWB is available in the string the variabele TWB gets the value true or yes (boolean).
Can I with the function instr() or which other way check that a certain code is available in the string. In fact I need to loop the string because positions are not fixed, only the code is determined in advance.
pat.
Dim DBS as boolean
Dim IDC as boolean
Dim TWB as boolean
I have string like
"[DBS][IDC][TWB]" or "[IDC][TWB]"
These string contains codes [...] but in a different sequence and some codes are in and others are not.
Do Until rst.EOF
strFRM = rst!PWDFRAME
I need to verify if a certain code is available in the string to determine the boolean value of a variable.
If e.g. the code TWB is available in the string the variabele TWB gets the value true or yes (boolean).
Can I with the function instr() or which other way check that a certain code is available in the string. In fact I need to loop the string because positions are not fixed, only the code is determined in advance.
pat.