Forum Discussion

NisHera's avatar
NisHera
Valued Contributor
11 years ago
Solved

How to define String within Sting

I'm trying to get a property check in a grid using  AqObject.CheckProperty methoed.

There property has to be a string.



My object is ABCGrid and property is wValue

But I have to pass parameters to get wValue

Such as wValue(1,"Amount",0) 



But can not write 

Call aqObject.checkProperty(ABCGrid"wValue(1,"Amount",0)",6, myValue)

Becouse "Amount" is withing ".... "

Any suggetion?



  • In VBScript, you need to double the quote characters inside the string:



    Call aqObject.checkProperty(ABCGrid, "wValue(1, ""Amount"", 0)", 6, myValue)

    '                                                ^       ^

    '                                                |       |

    ' --------------------------------------------------------



    By the way, you can use the property checkpoint wizard to generate the checkpoint code.
  • In VBScript, you need to double the quote characters inside the string:



    Call aqObject.checkProperty(ABCGrid, "wValue(1, ""Amount"", 0)", 6, myValue)

    '                                                ^       ^

    '                                                |       |

    ' --------------------------------------------------------



    By the way, you can use the property checkpoint wizard to generate the checkpoint code.