Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 4663 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted


Let ([

$n = $n + 150 ;

Calc = "getnthrecord (TableA::ChargeFoundSet; $n ) & ¶ &  "

];

Evaluate ( Calc )

)

thanks,

-i

Posted

Try this and see what it returns:

Let ([

$n = $n + 150 ;

Calc = "getnthrecord (TableA::ChargeFoundSet; $n ) & ¶ & "

];

EvaluationError( Evaluate ( Calc ) )

)

Posted

Try this and see what it returns:

Let ([

$n = $n + 150 ;

Calc = "getnthrecord (TableA::ChargeFoundSet; $n ) & ¶ & "

];

EvaluationError( Evaluate ( Calc ) )

)

#1204 = Number, text constant, field name or "(" expected

However, running it like this gives me a result. I am so confused why?


Evaluate ( "

GetNthRecord ( TableA::ChargeFoundSet;  3 )

")

Posted

Check the value of the variable Calc before it's being evaluated.

Check the value of the variable Calc before it's being evaluated.

It didn't like this

 & ¶ & 

Posted

Correct. :)

Be careful of using Evaluate() on the contents of a field. It opens up the FMP-equivilent of SQL injection attacks that could be used to change global variables.

This topic is 4663 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.