Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving Output Value for a SQL Stored Procedure 1

Status
Not open for further replies.

LeonelSanchezJr

Programmer
Jan 26, 2001
522
US
In my VFP 6 code, I am executing the following lines of code:

m.string = "EXEC proc_ins_CallNotes '" + alltrim(.edtnotes.value) + "',0"

lnresult = sqlexec(lhconnect, m.string)


This should basically create a record in my CALLNOTES table with a blank NOTES field and return the RECORD ID to the VFP calling program.

However, when I try to reference 0, I get 0. What am I doing wrong?
 
lcInVal=alltrim(.edtnotes.value)
lnRetVal=0

m.string = "EXEC proc_ins_CallNotes ?lcInVal,?@lnRetVal"

lnresult = sqlexec(lhconnect, m.string)

? lnRetVal Jon Hawkins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top