n_settexisparam to set an integer

Post Reply
acoulson0
Posts: 8
Joined: Thu Dec 21, 2000 8:01 am

n_settexisparam to set an integer

Post by acoulson0 »

Can you give an example of using n_settexisparam to setup an integer parameter?
Specificaly, how would you declare and pass the void *buf if you're not passing a string buffer?

Thanks, Andrew
User avatar
John
Site Admin
Posts: 2597
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

n_settexisparam to set an integer

Post by John »

The void *buf argument points to the integer, for example:

long data;
int len;

data=12345;
len=sizeof(data);
rc=n_settexisparam(se, pno, &data, &len, SQL_C_LONG, SQL_INTEGER);
John Turnbull
Thunderstone Software
Post Reply