Difference between revisions of "Calc Tips"

From FM Plugin Wikipedia
Jump to: navigation, search
(New page: {| align="right" | __TOC__ |} This page is about editing and working with Data passed from FileMaker to your plugin. =Calc Public Functions= *ulong Size () const *[[void Clear ()...)
 
 
(One intermediate revision by one other user not shown)
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=
 +
 
 +
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.
  
=Calc Public Functions=
 
 
*[[ulong Size () const]]
 
*[[ulong Size () const]]
 
*[[void Clear ()]]
 
*[[void Clear ()]]
Line 22: Line 25:
  
  
 +
=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 ExecuteSQL ( const Text &expression, Data &result, ushort colSep, ushort rowSep ) const]]
 +
*[[errcode RegisterExternalFunction ( const QuadChar &pluginId, short functionId, const Text &functionName, const Text &functionPrototype, short minArgs, short maxArgs, ulong typeFlags, ExtPluginType funcPtr )]]
 +
*[[errcode UnRegisterExternalFunction ( const QuadChar &pluginId, short functionId )]]
 +
*[[operator delete ( void *obj )]]
  
  
 
=Example Calc Functions=
 
=Example Calc Functions=

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