General information
Category:
Coding, syntax & commands
Environment versions
Network:
Windows 2000 Server
Hi there,
I'm having problems figuring out wildcards for string comparisons.
I have a WorkType variable that is a string. It always starts with PM and then a 2 digit number. So I want to have an if statement checking it's valid. i've used this code and it doesn't work:
If WorkType != "PM##"
lcErrorMessage = lcErrorMessage + "Work type is invalid..."
Endif
So when valid WorkType come in (e.g. PM03, PM14) they are failing.
Any help would be much appreciated
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only