dbTalk Databases Forums  

Variable with calculated name?!

comp.databases.filemaker comp.databases.filemaker


Discuss Variable with calculated name?! in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Aladino
 
Posts: n/a

Default Variable with calculated name?! - 04-22-2010 , 03:46 PM






Is there a way to set vatiables with calcualted names? I mean somethink
like this: I've a table with a textfield (field_1) that can contain a
formula, and a script that examines the related records from another
table. If I find a record with field_1 that contains somthing, I want to
set a variable that takes the name from the value of relation field...
something like $formula_1.1 where 1.1 is the value from another field in
the same record.
I need this, because I want to let user introduce formulas in
textfields, and use thes formulas in other formulas with evaluate
(formula) command, all withouth touching scripts or field definitions.
--
Per rispondere, togliere -NOSPAM- dall'indirizzo.

Reply With Quote
  #2  
Old   
Ursus
 
Posts: n/a

Default Re: Variable with calculated name?! - 04-23-2010 , 04:15 AM






"Aladino" <borgobello-NO (AT) SPAM-alice (DOT) it> schreef in bericht
news:1jhdfyb.1hu1mk6jy0mjcN%borgobello-NO (AT) SPAM-alice (DOT) it...
Quote:
Is there a way to set vatiables with calcualted names? I mean somethink
like this: I've a table with a textfield (field_1) that can contain a
formula, and a script that examines the related records from another
table. If I find a record with field_1 that contains somthing, I want to
set a variable that takes the name from the value of relation field...
something like $formula_1.1 where 1.1 is the value from another field in
the same record.
I need this, because I want to let user introduce formulas in
textfields, and use thes formulas in other formulas with evaluate
(formula) command, all withouth touching scripts or field definitions.
--
Per rispondere, togliere -NOSPAM- dall'indirizzo.
Only if you have the advanced version, because you need to create a custom
function to do this.

see: http://www.briandunning.com/cf/603
and: http://www.briandunning.com/cf/625

next time please state platform and version with you question

--
Keep well / Hou je goed

Ursus

Reply With Quote
  #3  
Old   
Aladino
 
Posts: n/a

Default Re: Variable with calculated name?! - 04-23-2010 , 04:45 AM



Ursus <ursus.kirk (AT) ziggo (DOT) nl> wrote:

Quote:
next time please state platform and version with you question
OK, thanks. I'm using FileMaker Advanced 9 on Mac to develop my
database, but it should work on with Pro 10/11. Now I give a look to the
links.

--
Per rispondere, togliere -NOSPAM- dall'indirizzo.

Reply With Quote
  #4  
Old   
Aladino
 
Posts: n/a

Default Re: Variable with calculated name?! - 04-23-2010 , 08:32 AM



Ursus <ursus.kirk (AT) ziggo (DOT) nl> wrote:

Quote:
see: http://www.briandunning.com/cf/603
and: http://www.briandunning.com/cf/625
They are not exactly what I'm looking to do, but thanks to it I wrote
this custom function:

AssegnaVariabile (nomeVariabile; contenutoVariabile) =
Evaluate ("Let ( [ " & nomeVariabile & "=\"" & contenutoVariabile & "\"
] ; \"\" ) ")

with wich you can assign a variable taking the name (or part of it) from
a field... In my case, I used it in a dummy variable assignment (like
suggested in cf603) with this values:

Case (Prestazione_variabile::calcolo_compenso <> ""; AssegnaVariabile (
"$prestazione_" & Modul-PRA:restazione_variabile;
Prestazione_variabile::calcolo_compenso ))

And it works like i need.
My be, it can be usefull to some other...

--
Per rispondere, togliere -NOSPAM- dall'indirizzo.

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.