say i have a function that compares strings that looks like the following when used in code:
Expand|Select|Wrap|Line Numbers
- if ((StrComp (some char* here, another char* here)) [.......]
now i have a group of strings i want to compare and i dont want to write like 7 of those if statmenets or keep repeating the function in that one if statements...
i was wondering if there is a way to squeeze together a bunch of strings in the 2nd param in order to compare it and if any of them are true do something else do something else.... example:
Expand|Select|Wrap|Line Numbers
- if ((StrComp(CHARA, (CHARB OR CHARC OR CHARD OR etc...))
Expand|Select|Wrap|Line Numbers
- if (StrComp (CHARA, CHARB) || StrComp (CHARA, CHARC)) ... etc.
P.S. is there a way to increase the number of parameters based on programmers input without actually modifying the code to include like 50 of them with default values?
thanks
DK--