Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Friends,
Can anyone help me with a Syntax for the below. Thanks in Advance.
@
How to assign the string value into a variable.
Example: x="apple". Here x is a variable name.
Regards,
Pooja.
Try this LET x = 'apple';
Hi Sunny,
Thanks for the response but , I am not getting the answer. It shows "-" in the text object when i called that variable.
Regards,
Pooja.
Would you be able to share the application to check it out?
Hi,
maybe you can see the difference to Sunny's suggested solution in your application?:
LET x = 'apple';
hope this helps
regards
Marco
If you don't want to declare it in the load script, you can create a variable, you can update the variable with an input box
!
Make sure you used single (not double) quotes as Sunny specified.
For this assignment, you can also make it even simpler by using SET.
SET x=apple;
-Rob
Hi Sunny,
I have attached the qvw file. And let me know the possible solution.
Actual expectation is:
LET v=10;
LET x='apple';
Result in Text Object should be: 10 apple
Thanks,
Pooja
Try this:
=v&' ' & x
Hi Sunny,
Thanks for your quick response. Got the result as expected. I like to know the difference between defining the variable in script level and in design level(settings->variable overview).
Thanks in Advance,
Pooja