fayrehouse
12 years agoFrequent Contributor
More Parameter P(a)rob(a)lems!
All,
I'm a bit baffled here, as I'm sure this was working for me the other day!
I have a script function that takes 5 string params - 4 of which are optional, so a call might look like:
SelectDetails ("Param1","","","","")
I'm calling this function via "Run Script Routine" in a keyword test. By default, variables are Variants. if I click the "..." button for any of the 4 params, and change the type to String, and click OK - it looks right - but if I click "..." again, it has defaulted back to Variant! It's only if I enter a value does it remain as a string.
Can someone please advise what I can do here - if I leave it as variant - then the code actually (calling the Keys method) tries to type in "UNDEFINED" in one of hte fields! NOT GOOD!
As I say - I'm sure the other day I was able to set an empty string - but seemingly not now!
Help?!?
I'm a bit baffled here, as I'm sure this was working for me the other day!
I have a script function that takes 5 string params - 4 of which are optional, so a call might look like:
SelectDetails ("Param1","","","","")
I'm calling this function via "Run Script Routine" in a keyword test. By default, variables are Variants. if I click the "..." button for any of the 4 params, and change the type to String, and click OK - it looks right - but if I click "..." again, it has defaulted back to Variant! It's only if I enter a value does it remain as a string.
Can someone please advise what I can do here - if I leave it as variant - then the code actually (calling the Keys method) tries to type in "UNDEFINED" in one of hte fields! NOT GOOD!
As I say - I'm sure the other day I was able to set an empty string - but seemingly not now!
Help?!?