Can anyone tell me how to typecast a string datatype to a Window datatype? I keep getting Incompatible datatypes when I try typecasting using the regular typecasting method, i.e.,
window wObject = [WINDOW]sData
(I know this isn't allowed, still I gave it a try)
I'm extracting the sData variable from an Excel sheet which has been set to Text format. The column from which this value is being extracted is a general column and can't be formatted to any specific type.
Thanks for the suggestion. However, even that didn't help. Whenever I tried using
WINDOW wObject = @sData, where sData = "SystemErrors",
I got the following error:
'Variable SystemErrors is not defined'.
Does this mean that I need to first declare the window? (Here, I'm trying to verify an error dialog that gets dynamically generated, and so am not declaring it!) What do you suggest?