| || |
Parameter Type Any
Right Click on an action.
Go to paramters tab.
Under Type there is a choice of Any. I'm wondering what this means. What is a type of Any used for?
Well, I think they're all "Any" when you get down to it. VBScript slaps everything into Variant types, no matter what you pick. The drop-down there is likely just for your reference, so you know what you should put in the variable.
Action paramvariable datatype are already subtyped datatype
Parameter("a") + Parameter("b") will give error if a =string and b=int
Legal Datatype in Action parameter: String , Boolean, Date , Number , Password,Any
Any. A variant value type, which accepts any of the above value types. If you select this value type, you must specify the value in the format that is required in the location where you intend to use the value. For example, if you intend to use the value later as a string, you must enclose it in quotation marks. When you specify a value of Any type, UFT checks whether it is a number. If the value is not a number, UFT automatically encloses it in quotation marks. If you are editing an existing value, UFT automatically encloses it in quotation marks if the previous value had quotation marks. The default value is an empty string.
Also you can search with qtParamTypeAny
I appreciate the research.
I wonder why they called it Any rather than variant? Perhaps it looks more friendly.
Any is just another way of saying that its not gonna give error to you in ANY kind of value.
Agreed that variant is more convenient for a knowledgeable vb coder, but HP might have think more from layman perspective which is not wise here