toDataSet

Description

Tries to coerce value into a dataset. Not many things can be coerced into datasets. Namely, only DataSets and PyDataSets can be coerced into DataSets. This is useful for the runScript() expression, to convince the expression compiler to let you assign the return value of a scripting function to a DataSet property.

Syntax

toDataSet( value, [failover] )

Examples
 toDataSet(runScript("app.funcs.runSomeFunction()")) //coerces the value returned by the a project scripting function into a dataset.