Click here to Skip to main content
15,913,941 members
Home / Discussions / C#
   

C#

 
AnswerRe: TEXT BOX TEXT TO DOUBLE? Pin
Luis Alonso Ramos25-Aug-05 16:49
Luis Alonso Ramos25-Aug-05 16:49 
GeneralRe: TEXT BOX TEXT TO DOUBLE? Pin
...---...25-Aug-05 17:02
...---...25-Aug-05 17:02 
JokeRe: TEXT BOX TEXT TO DOUBLE? Pin
Luis Alonso Ramos25-Aug-05 18:03
Luis Alonso Ramos25-Aug-05 18:03 
QuestionRetrieve the value of Inout parameter Pin
tsramkumar25-Aug-05 11:35
tsramkumar25-Aug-05 11:35 
AnswerRe: Retrieve the value of Inout parameter Pin
miah alom25-Aug-05 11:42
miah alom25-Aug-05 11:42 
GeneralRe: Retrieve the value of Inout parameter Pin
tsramkumar25-Aug-05 11:46
tsramkumar25-Aug-05 11:46 
GeneralRe: Retrieve the value of Inout parameter Pin
miah alom25-Aug-05 11:52
miah alom25-Aug-05 11:52 
GeneralRe: Retrieve the value of Inout parameter Pin
tsramkumar25-Aug-05 12:56
tsramkumar25-Aug-05 12:56 
Hi
Here is my code.
================

<br />
...<br />
DB2Parameter[] db2params = new DB2Parameter[3];<br />
<br />
BuildParameters(db2params, new object[] {"LSFEEDCD", DB2Type.Char, 4,"RABF"} , new object[]{"LSINVDT", DB2Type.Date, 8,"20041100"},new object[]{"LSSQLCD", DB2Type.SmallInt, 2,20});<br />
<br />
DB2Helper.FillDataset(txtConnectionString.Text,"TTEZQ.ZQSPNS4", ds, new string[] {"Gateway_Test"},db2params);<br />
...<br />
..<br />


BuildParameters Method definition
==================================

<br />
  public static void BuildParameters(DB2Parameter[] DB2Params, params object[] parameters)<br />
   {<br />
	   for (int i=0; i <parameters.Length;i++)<br />
	   {<br />
		   object a = ((object[])(object)parameters[i])[0];<br />
		   object b = ((object[])(object)parameters[i])[1];<br />
   		   object c = ((object[])(object)parameters[i])[2];<br />
   		   object d = ((object[])(object)parameters[i])[3];<br />
		   DB2Params[i] = new DB2Parameter((string)a,(IBM.Data.DB2.DB2Type)b,(int)c);<br />
		   DB2Params[i].Direction = ParameterDirection.InputOutput;<br />
   		   DB2Params[i].Value = d;<br />
	   }<br />
   }<br />


I am interested in the third parameter where I pass the value as 20. I see the old value even after the call.
I did do a step by step debug within the DB2Helper class of the application block and I was able to see the returned value of the parameter in the filldataset method of that class, but once I return back to my class, I see the old value.

Any thoughts?

Thanks
AnswerRe: Retrieve the value of Inout parameter Pin
Luis Alonso Ramos25-Aug-05 17:19
Luis Alonso Ramos25-Aug-05 17:19 
GeneralRe: Retrieve the value of Inout parameter Pin
tsramkumar26-Aug-05 1:35
tsramkumar26-Aug-05 1:35 
Questionxs:date type in DataSet Pin
tadass25-Aug-05 11:10
tadass25-Aug-05 11:10 
QuestionUsing ArrayList Pin
MarkMokris25-Aug-05 10:49
MarkMokris25-Aug-05 10:49 
AnswerRe: Using ArrayList Pin
gnjunge25-Aug-05 10:54
gnjunge25-Aug-05 10:54 
GeneralRe: Using ArrayList Pin
Daniel132425-Aug-05 13:33
Daniel132425-Aug-05 13:33 
AnswerRe: Using ArrayList Pin
Matt Gerrans25-Aug-05 16:59
Matt Gerrans25-Aug-05 16:59 
AnswerRe: Using ArrayList Pin
Luis Alonso Ramos25-Aug-05 17:12
Luis Alonso Ramos25-Aug-05 17:12 
GeneralRe: Using ArrayList Pin
Kevin McFarlane26-Aug-05 0:33
Kevin McFarlane26-Aug-05 0:33 
AnswerRe: Using ArrayList Pin
radic.feng26-Aug-05 1:23
radic.feng26-Aug-05 1:23 
QuestionJob Scheduler Pin
mohitTheOne25-Aug-05 9:46
mohitTheOne25-Aug-05 9:46 
AnswerRe: Job Scheduler Pin
miah alom25-Aug-05 11:45
miah alom25-Aug-05 11:45 
QuestionSubclassing in .NET Pin
Luis Alonso Ramos25-Aug-05 9:43
Luis Alonso Ramos25-Aug-05 9:43 
AnswerRe: Subclassing in .NET Pin
Daniel Turini25-Aug-05 10:31
Daniel Turini25-Aug-05 10:31 
GeneralRe: Subclassing in .NET Pin
Luis Alonso Ramos25-Aug-05 16:59
Luis Alonso Ramos25-Aug-05 16:59 
Answer[Message Deleted] Pin
miah alom25-Aug-05 11:59
miah alom25-Aug-05 11:59 
QuestionSetting the exact position of a tooltip Pin
Luis Alonso Ramos25-Aug-05 9:37
Luis Alonso Ramos25-Aug-05 9:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.