Robert E. Green Posted September 26, 2006 Share Posted September 26, 2006 I need help on running a find in a script. When I set the find =320 it works. When I set $fnd=320 and set the find = $fnd it doesn't work. Is FIND not able to evaluate a variable or a global? My first week in FileMaker and I already know "Scripts...You can't live with them and you can't live without them!" Someone throw me a life line! Thanks!! Quote Link to comment Share on other sites More sharing options...
AHunter3 Posted September 26, 2006 Share Posted September 26, 2006 If you mean the Perform Find script step, sorry, no, it doesn't support variables. You can do it this way instead: Set Variable [$VariableName, "whatever"] Enter Find Mode [] Set Field [Table::FieldName, $VariableName] Perform Find [] Quote Link to comment Share on other sites More sharing options...
Ender Posted September 26, 2006 Share Posted September 26, 2006 You can't type a variable directly in a Find request or store a variable in a Find request. Instead, do something like: Set Variable [ $fnd ; 320 ] ... Enter Find Mode[] Set Field [ field ; $fnd ] Perform Find [] Quote Link to comment Share on other sites More sharing options...
Robert E. Green Posted September 26, 2006 Author Share Posted September 26, 2006 Thank You AHUNTER and ENDER (The Moderator) your advice was spot on! Quote Link to comment Share on other sites More sharing options...
AHunter3 Posted September 26, 2006 Share Posted September 26, 2006 You might want to rethink your approach to thread titles. Or then again maybe not. You got at least two people popping in curious about what a "Bob Green" might be in FileMaker parlance... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.