12-04-2009, 06:06 PM
Hi Nil,
Changed the code as below in Function and working fine.
I am not understandig that strErrorMessage is a variable which is converted in an array.
Why is it so? I guess whatever type of value assigned to a varible then the varisble get converted in that type. Please tell me this interpretaion is correct or wrong.
Thank you very much for giving me your valuable time. Thanks!
Dinesh
Changed the code as below in Function and working fine.
Code:
fnGetVal=arrRows
===== call code
strSql="Select SrNo,Name from ABCtbl where Flag = '1' "
strErrorMessage=fnGetVal(strSql, intCount, arrRowVal, strResult)
I have got the values for strResult & arrRowVal in main script.
The arrRowVal's values are assigned to strErrorMessage.
strErrorMessage(0) - display first value
strErrorMessage(1) - display second value...
I am not understandig that strErrorMessage is a variable which is converted in an array.
Why is it so? I guess whatever type of value assigned to a varible then the varisble get converted in that type. Please tell me this interpretaion is correct or wrong.
Thank you very much for giving me your valuable time. Thanks!
Dinesh