Page 1 of 1

n_settexisparam to set an integer

Posted: Tue Jan 09, 2001 8:19 pm
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

n_settexisparam to set an integer

Posted: Tue Jan 09, 2001 9:23 pm
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);