I have the code below
if (LCase(Config_(C_))) like "show*" Then
crt.screen.send Config_(C_) & VBCR
crt.screen.WaitForStrings ">", "#"
End If
but when I run it I get a "Sub not defined on line 36 (which is the "if(LCase(....." line)
Config_
is an array of strings
C_
is the element address
So all I want to do is say,
If this array element starts with "show" then run the command, insuring it does not matter if the user emters upper or lower case.
Why this code does not work? Other if like statements seem ok.