ir ao artigo Paulo Mauri · Maio 26 Boa tarde, Heloisa! Obrigado, pode me ajudar bastante. Porém, gostaria de saber como tratar/capturar o retorno %Status, na camada de aplicação no C#. NET, se alguém tem uma prática diferente.
ir ao artigo Paulo Mauri · Maio 23 Boa Tarde, Segue exemplo de método de chamada: public static void Inclui(string NumeroPedido, string Descricao) { try { string sSql = "? = call ldPedido_Insere(?,?)"; using (OdbcCommand insCommand = conexao.getOdbcCommand(sSql)) { var ret = insCommand.Parameters.Add("Retorno", OdbcType.VarChar, 2000); ret.Direction = ParameterDirection.ReturnValue; insCommand.Parameters.Add("ID", OdbcType.BigInt).Direction = ParameterDirection.Output; insCommand.Parameters.Add("Descricao", OdbcType.VarChar, 2000).Value = Descricao; insCommand.Prepare(); insCommand.ExecuteNonQuery(); if (ret.Value != null && ret.Value.ToString() != "1") { throw new Exception(ret.Value.ToString()); } NumeroPedido = insCommand.Parameters["ID"].Value.ToString(); } } catch (Exception exc) { throw new Exception(exc.Message); } }