Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7755 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

In Script Maker, How do I perform a find by literal value?

When performing the find manuallly, their is the option of literal value where the text is enclosed in quotes. I need to perform the same thing in a script.

I tried

Set Field ["sel_type", """& seach_sel & """];

but this only returned the actual string "& search sel &" as opposed to the value of search_sel enclosed in quotes....

Thanks.

ron

Posted

Sometimes it is easier when doing this to create a global field and use that in your calculation instead of the operator. However, you need to have three ''"" in your calculation for each ". i.e.

Set Field(sel_type, """ & serch_sel & """)

Note: it will be displayed in the Script Box with four quotes.

HTH

Lee

Posted

Hi Lee,

search_sel is a global field.

and in the area of "Specify" in Set Field, I did exactly what you did of 3 quotes followed by the & then the global field then followed by the & and 3 quotes again.

As you said, it has 4 quotes when viewed in ScriptMaker but when I step through it, I get

an actual quote followed by the actual & symbol and the actual string of search_sel as opposed to the value then followed again by & and the end quote.

I took out the & symbol and just enclosed the search_sel with 3 quotes and this time I got the

the actual string of quote followed by the actual string of "search_sel" followed again by quote.

I'm not getting the value of search_sel...

How do I get it to the point of quote followed by the actual value as opposed to the string of the variable....????

confused.gifcrazy.gif

This topic is 7755 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.