Re: SQLEXEC()
From: Trey Walpole (treyNOpole_at_SPcomcastAM.net)
Date: 04/19/04
- Next message: Trey Walpole: "Re: SQLEXEC()"
- Previous message: John Spiegel: "SQLEXEC()"
- In reply to: John Spiegel: "SQLEXEC()"
- Next in thread: Trey Walpole: "Re: SQLEXEC()"
- Reply: Trey Walpole: "Re: SQLEXEC()"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 19 Apr 2004 11:33:56 -0500
Check the return value for SQLEXEC()
e.g.,
nRetVal= SQLEXEC(nX, "SELECT * FROM SomeTable WHERE SomeKey = 10",
"curSampleData" )
IF nRetVal <0
** a connection (db) error occurred
etc...
"John Spiegel" <jspiegel@YETANOTHERSPAMHATERc-comld.com> wrote in message
news:eJ1N4tiJEHA.2680@TK2MSFTNGP11.phx.gbl...
> Hi All,
>
> I'm essentially a newbie when it comes to using the SQLCONNECT-related
> functions. I'm connecting up to an Oracle system sort of like the
> following...
>
> nX = SQLCONNECT("eprd", LoginID, LoginPassword)
> IF nX > 0
> SQLEXEC(nX, "SELECT * FROM SomeTable WHERE SomeKey = 10",
> "curSampleData" )
> IF USED("curSampleData")
> * do stuff
> ENDIF
> ENDIF
>
> curSampleData never comes into existence. The next theory I'm testing is
a
> need to set the Asynchronous property .F. Any other places to look?
>
> TIA,
>
> John
>
>
- Next message: Trey Walpole: "Re: SQLEXEC()"
- Previous message: John Spiegel: "SQLEXEC()"
- In reply to: John Spiegel: "SQLEXEC()"
- Next in thread: Trey Walpole: "Re: SQLEXEC()"
- Reply: Trey Walpole: "Re: SQLEXEC()"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|