Forum Discussion

Daniel_Goergens's avatar
Daniel_Goergens
Frequent Visitor
7 years ago
Solved

Does TestComplete using VB Scripts Support declaring variables by Type? Ex Dim i As Integer.

I have been unable to declare variables by type.  

Am I missing something?  

Or does TestComplete simply not support the As Keyword?

 

 

  • This is VB Script, not VB... so it is not a "strongly typed" language.  So the "As" operator is not used or supported.  you can "Dim i"... but then you could, technically, send "i" as a parameter to a keystroke and it will be automatically converted to a string, if possible.

1 Reply

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    This is VB Script, not VB... so it is not a "strongly typed" language.  So the "As" operator is not used or supported.  you can "Dim i"... but then you could, technically, send "i" as a parameter to a keystroke and it will be automatically converted to a string, if possible.