Arr to string
SweLogan
Posts: 11
SERIN 16,Baud,[noparse][[/noparse]STR tagstring\4]
how do i use the tagstring in a select case then?
i get errors like (Expected a constant, variable, unary operator, or '(')
how do i use the tagstring in a select case then?
i get errors like (Expected a constant, variable, unary operator, or '(')
Comments
SELECT mychar
CASE "A"
or pairs of characters, such as
SELECT mychars
CASE "A" * 256 + "B" ' for string AB, converted to Word variable
but for a four character string I think you would have to do it in two steps, which would be easiest if you can organize your tagstring into meaningful two letter subcatagories.
mycharsA = tagstring(0) * 256 + tagstring(1)
mycharsB = tagstring(2)*256 + tagstring(3)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com