DBGateway_AddRealParameter

4D - Documentation   Français   English   German   4D For ADO, Command Theme List   4D For ADO, Command Alphabetical List   Back   Previous   Next

version 2004


DBGateway_AddRealParameter (connID; tagIndex; paramValue)

ParameterTypeDescription
connIDLongintConnection ID returned by DBGateway_Connect
tagIndexStringTag which will be replaced in the SQL query
paramValueRealReal value to substituted for the tag

Description

The DBGateway_AddRealParameter command replaces a tag (tagIndex) with a Real (paramValue) that you can use from your SQL query instead of the value itself itself.

connID is a Longint returned by DBGateway_Connect.

tagIndex is a String in the Select or Execute statement that will be replaced by paramValue at the time of execution.

paramValue is the Real value that will replace tagIndex at the time of execution.

Example

   DBGateway_AddRealParameter(connID;"%3";5.95)
   DBGateway_Execute(connID,"INSERT INTO test(field1, field2, field3) VALUES (%1, %2, %3))

4D - Documentation   Français   English   German   4D For ADO, Command Theme List   4D For ADO, Command Alphabetical List   Back   Previous   Next