a5_property_to_arguments Function
Syntax
V a5_property_to_arguments(P p ,P args )
Arguments
- p
Dot variable input
- args
SQL::Arguments output
Description
Converts a dot variable to SQL Arguments, setting the argument name to match the variable name, and the 'data' to contain the variables value.
Example
dim p as p p.name = "john" p.date = now() p.number = 23 dim args as sql::Arguments a5_property_to_arguments(p,args) ? args.XML = <SQLArguments> <SQLArgument> <Name>name</Name> <Data Type="C">john</Data> <IsNull Type="L">0</IsNull> <Usage>Input</Usage> </SQLArgument> <SQLArgument> <Name>date</Name> <Data Type="T">2016-04-05 13:06:01 225000</Data> <IsNull Type="L">0</IsNull> <Usage>Input</Usage> </SQLArgument> <SQLArgument> <Name>number</Name> <Data Type="N">23</Data> <IsNull Type="L">0</IsNull> <Usage>Input</Usage> </SQLArgument> </SQLArguments>