View Full Version : Query Service
Braendan
12-04-2002, 07:46 AM
Hi,
SetupFactory does not support case sensitive ?
E.g. Service running on the system is "serviceNAME" when i query "servicename" the query will return a null value.
Any help on this is much appreciated.
Best Regards,
Braendan
Darryl
12-06-2002, 02:52 PM
Yes, you are right the Query Service action is case sensitive for the display name.
I'm certainly no expert on Services, however isn't that standard for queries? Please correct me or point me to any information to the contrary if you believe this should not be the case.
Braendan
12-09-2002, 12:47 AM
I need a way to force the input for the service query to CAPS. The reason for this is some certain services has a mix of small caps and caps which will make the query inaccurate.
Darryl
12-09-2002, 01:11 PM
One idea is the following:
1) First gather the input from the user and store it in a variable.
2) Create a variable that contains a string composed of all of the alphabetic characters in lower case.
3) Create a variable that contains a string composed of all of the alphabetic characters in upper case.
4) These strings will have indexes for each character, so what you could do is loop through your input string to check each character against the lower case string. If that input character matches any value in the lower case string, get it's index and then take that index to get the character in the upper case string. With each of these upper case letters, build a new variable string using string concatenation. This will require some looping, but I believe it will work.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.