Difference between revisions of "Calc Tips"

From FM Plugin Wikipedia
Jump to: navigation, search
(Added ExprEnv class methods)
 
Line 3: Line 3:
 
   |}
 
   |}
  
This page is about editing and working with Data passed from FileMaker to your plugin.
+
The DataVect and ExprEnv classes are how your plug-in interacts with the calculation engine.
  
 
=DataVect Public Functions=
 
=DataVect Public Functions=
 +
 +
The DataVect class is a simple vector of Data objects. FileMaker passes a DataVect to your plugin call that holds the arguments supplied to the external function.
 +
 
*[[ulong Size () const]]
 
*[[ulong Size () const]]
 
*[[void Clear ()]]
 
*[[void Clear ()]]
Line 23: Line 26:
  
 
=ExprEnv Public Functions=
 
=ExprEnv Public Functions=
 +
 +
The ExprEnv class allows your plugin to interact with the calculation engine, it can evaluate FileMaker expressions and SQL, and there are methods to dynamically register / unregister external functions.
 +
 
*[[errcode Evaluate ( const Text &expression, Data &result ) const]]
 
*[[errcode Evaluate ( const Text &expression, Data &result ) const]]
 
*[[errcode ExecuteSQL ( const Text &expression, Data &result, ushort colSep, ushort rowSep ) const]]
 
*[[errcode ExecuteSQL ( const Text &expression, Data &result, ushort colSep, ushort rowSep ) const]]

Latest revision as of 04:45, 17 August 2007

The DataVect and ExprEnv classes are how your plug-in interacts with the calculation engine.

DataVect Public Functions

The DataVect class is a simple vector of Data objects. FileMaker passes a DataVect to your plugin call that holds the arguments supplied to the external function.


ExprEnv Public Functions

The ExprEnv class allows your plugin to interact with the calculation engine, it can evaluate FileMaker expressions and SQL, and there are methods to dynamically register / unregister external functions.


Example Calc Functions