Need sqlset function samples

forum.sourcecode (2000-2005) & forum.td.sourcecode (2005-2010)
sreeraj

Need sqlset function samples

Post by sreeraj » 23 May 2006, 15:51

 Posted by:  sreeraj 

Hi,

Do anyone hav a sample that uses
sqlset function of sqlwntm.dll

Thanks in advance
Sreeraj.

RainerE
Germany
Posts: 2204
Joined: 27 Apr 2021, 12:40
Location: Germany

Re: Need sqlset function samples

Post by RainerE » 23 May 2006, 15:52

 Posted by:  Rainer Ebert 

One (not functioning) example can be found in forum.sqlbase in thread
"Change database cache from TD program".

Rainer

sreeraj

Re: Need sqlset function samples

Post by sreeraj » 23 May 2006, 16:15

 Posted by:  sreeraj 

Hi Rainer,

I think the 2nd parameter is string. This is shown as NUMBER in the
specified posting.
Which one is the correct one.

This one
Number: INT
String: LPSTR
Number: INT
Number: INT

OR This one

Sql Handle: HSQLHANDLE
Number: WORD
Receive Number: LPINT
Number: INT

I am confused....

Also how can i include the specified constant? When i specified SQLPAUT, it
says symbol is undefined

Tanks
Sreeraj.

RainerE
Germany
Posts: 2204
Joined: 27 Apr 2021, 12:40
Location: Germany

Re: Need sqlset function samples

Post by RainerE » 24 May 2006, 10:17

 Posted by:  Rainer Ebert 

Hi Sreeraj!

I'm not sure about the parameters. Maybe this depends on the type of
information? The definition should be taken from sql.h which is located in
the sqlbase installation directory in subdirectory include. But it's not so
easy for me to translate this declaration into external TD datatypes.

You can include the specified constant as numeric constant under Global
Declarations - Constants - System/User.

See attachement for some api-functions, constants and a functioning usage of
sqlget and sqlset.

Rainer

You do not have the required permissions to view the files attached to this post.

sreeraj

Re: Need sqlset function samples

Post by sreeraj » 29 May 2006, 14:17

 Posted by:  sreeraj 

Hi Rainer

Thanks a lot for the application
Now I am able to use the constants

Regards
Sreeraj.

Return to “td.sourcecode”

Who is online

Users browsing this forum: [Ccbot] and 0 guests