How do I make this work? I'm trying to see if the user input the word NPA, NXX or SPN back earlier in program.These would be assigned to the bartype veriable.
I'm trying to say IF strfind bartype is NXX or NPA or SPN then do this? with one if then statement. Is this possible or is there a better way. I'm sure this is simple but I'm just learning.I can't figure this out.
Thanks!!
sdlginput "Gathering Information..." "Enter the either NPA,NXX or SPN :" bartype 3 DEFAULT
if FAILURE
goto Quit
else
endif
if strfind bartype "NPA"|"NXX"
sdlgmsgbox "" "Do you have Deny codes?" question yesno denycode
if denycode == 6
sdlginput "In the format C:\file\denycodes.txt" "Enter the text file they are stored in." storedfile DEFAULT
else
endif
endif
Woodro
I'm trying to say IF strfind bartype is NXX or NPA or SPN then do this? with one if then statement. Is this possible or is there a better way. I'm sure this is simple but I'm just learning.I can't figure this out.
Thanks!!
sdlginput "Gathering Information..." "Enter the either NPA,NXX or SPN :" bartype 3 DEFAULT
if FAILURE
goto Quit
else
endif
if strfind bartype "NPA"|"NXX"
sdlgmsgbox "" "Do you have Deny codes?" question yesno denycode
if denycode == 6
sdlginput "In the format C:\file\denycodes.txt" "Enter the text file they are stored in." storedfile DEFAULT
else
endif
endif
Woodro