September 3, 200322 yr 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
September 3, 200322 yr 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
September 3, 200322 yr Author 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....?
September 3, 200322 yr Author Just as you posted, I tried 4 quotes and this time it needs to have the & included. You rock Lee.... Thanks.
Create an account or sign in to comment