Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / Informix Topics / May 2004

Tip: Looking for answers? Try searching our database.

Informix ESQL/C $PARAMETER

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vijay Kumar - 27 May 2004 14:59 GMT
Hi All,

    I am going thru a code of ESQL/C. It has something like this.
$PARAMETER struct sqlda **stP_da_ptr_main;
Please let me know what does $PARAMETER means. All the variables declared a
$PARAMETER are sent as parameters to the functions?

Regards,
Vijay Kumar

sending to informix-list
Jonathan Leffler - 27 May 2004 17:00 GMT
>     I am going thru a code of ESQL/C. It has something like this.
> $PARAMETER struct sqlda **stP_da_ptr_main;
> Please let me know what does $PARAMETER means. All the variables declared a
> $PARAMETER are sent as parameters to the functions?

It means that the host variable is a function parameter, not a local
variable.   Most of the time, there's not much difference.  However,
if you declare an array as a parameter, it is slightly different from
a local array.

In the specific case of 'struct sqlda **', there's no need to declare
it as a host variable.  The only place it would be used is in a
DESCRIBE statement, and you don't use the host variable notation there
(or, at any rate, you don't need to declare the host variable).

Signature

Jonathan Leffler                   #include <disclaimer.h>
Email: jleffler@earthlink.net, jleffler@us.ibm.com
Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.