longncsu Posted September 24, 2002 Posted September 24, 2002 Is there a way to have variables in find mode? I have a bunch of finds that search for a specific $ amount. The price has gone up so I have to change all the find scripts. When I update the find this time I want have a variable for the money so if the $ amount gets changed again I will only have to update it in one place instead on 20.
kenneth2k1 Posted September 24, 2002 Posted September 24, 2002 Hi: I don't know how your db is set up now, but having the $ amount that you speak of stored in a field, then you can change the data in that field when the $ amount changes. Then your find will be matched against the value in this field. Know what I mean? Ken
CobaltSky Posted September 24, 2002 Posted September 24, 2002 Ken's right, but he omitted to mention that the fields you store your variables in must be global fields in order for them to be available to your scripts in find mode. The user can't access a global field in find mode, but you'll discover that script calculations (eg Set Field [ ]) can reference them.
kenneth2k1 Posted September 24, 2002 Posted September 24, 2002 Yes, youre right Ray. I did not mention that. Ken
Recommended Posts
This topic is 8095 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