I have a simple function that checks for text on a page. It first checks if a specific argument has a value, if so then executes code otherwise exits the function.
Example:
Function ck(reqA,reqB,optC)
IF optC <> "" Then
...run code
End If
End Function
ck(A,B,C)
The variable C points to a datatable that may or may not contain a value. The function works fine if C is the only value in the parameter. The problem I'm having is occasionally there is a need to have some form of static text concatenated to C like:
ck(A,B,"Jibberish " & C)
In the above example, optC always evaluates to TRUE because the string "Jibberish " is found. I'm looking for a way to ignore any string and only check if the actual variable C is empty before executing the code. Suggestions?
"foo " & Cis concatenated to a single string, which is then assigned tooptC. There is no way for a function to know how the value of one of its arguments came to pass.