
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
String value into a variable.
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.
- « Previous Replies
-
- 1
- 2
- Next Replies »
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this LET x = 'apple';

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Would you be able to share the application to check it out?


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
maybe you can see the difference to Sunny's suggested solution in your application?:
LET x = 'apple';
hope this helps
regards
Marco


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
!


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this:
=v&' ' & x

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- « Previous Replies
-
- 1
- 2
- Next Replies »