Forum Discussion

christiank's avatar
christiank
Occasional Contributor
10 years ago

WaitWindow Parameters Optional & Required

Hi,

we are using the WaitWindow method in our project quite alot. 

The help documentation for WaitWindow explains four paramters, two of them required and two of them optional. 

 

WndClass[in]RequiredString 
WndCaption[in]OptionalStringDefault value: *
GroupIndex[in]OptionalIntegerDefault value: -1
WaitTime[in]RequiredInteger 
ResultObject

 

Coming from dotnet this is not clear to me, since optional paramters can only be used as last parameters for a method. How exaclty does TC execute this method when it is called like this (as we do in our project):

 

["WaitWindow"] ("xyz", "abc", 1)

 

There will be no error on execution but to me this doesnt make sense.

 

You could of course argue to not use the function like this but since Im newly assigned to this project and the is method is used quite extensively Id rather not change every single usage.

 

We are using Version 10.40.2015.7

No RepliesBe the first to reply