macaroni Posted September 3, 2003 Posted September 3, 2003 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
Lee Smith Posted September 3, 2003 Posted September 3, 2003 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
macaroni Posted September 3, 2003 Author Posted September 3, 2003 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....?
macaroni Posted September 3, 2003 Author Posted September 3, 2003 Just as you posted, I tried 4 quotes and this time it needs to have the & included. You rock Lee.... Thanks.
Lee Smith Posted September 3, 2003 Posted September 3, 2003 your welcome. I always forget that it is 4 not 3. Lee
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now