dbTalk Databases Forums  

perform find using global variable - fm8.5adv

comp.databases.filemaker comp.databases.filemaker


Discuss perform find using global variable - fm8.5adv in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
GSP@DCS
 
Posts: n/a

Default perform find using global variable - fm8.5adv - 12-06-2006 , 09:33 AM






I'm trying to do a 'perform find, restore' script step after setting a
global variable, ie

set variable($$myvar, "myvalue")
perform find (restore) where specification is 'find records where
table1:field1 = $$myvar'

the problem is that $$myvar is being applied literally instead of being
evaluated for myvalue. When the find fails and I go back to modify find
criteria I would expect to see "myvalue" in table1:field1. Instead I am
seeing "$$myvar". And of course there are no records which contain a string
"$$myvar".

I'm sure I'm overlooking something.
All help is appreciated.
Steve




Reply With Quote
  #2  
Old   
GSP@DCS
 
Posts: n/a

Default Re: perform find using global variable - fm8.5adv - 12-06-2006 , 10:37 AM






never mind on either of today's posts. I found both answers at
http://www.dbtalk.net/comp-databases-filemaker.

"GSP@DCS" <info (AT) dcs (DOT) com> wrote

Quote:
I'm trying to do a 'perform find, restore' script step after setting a
global variable, ie

set variable($$myvar, "myvalue")
perform find (restore) where specification is 'find records where
table1:field1 = $$myvar'

the problem is that $$myvar is being applied literally instead of being
evaluated for myvalue. When the find fails and I go back to modify find
criteria I would expect to see "myvalue" in table1:field1. Instead I am
seeing "$$myvar". And of course there are no records which contain a
string "$$myvar".

I'm sure I'm overlooking something.
All help is appreciated.
Steve






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.