CREATE PROCEDURE Contador @Valor1 int, @Valor2 int, @nRetorno int output AS SET @nRetorno = @valor1 + @valor2If I run it from query analyser such as:
declare @resposta int exec contador 1,2, @resposta output select @respostaIt's run without problems, but how do I do to return the value to VFP ?
recordset.fields.("name_of_my_field").value or recordset.fields.(0).valueBut it don't run ok when I run the stored procedure. Why ?