Micro Focus QTP (UFT) Forums
DataTable - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: DataTable (/Thread-DataTable)



DataTable - SS001 - 07-19-2010

Hi,

I have fetched 2 values from oracle and stored in datatable. i need to pass that 2 variables to a web edit using comma.

eg:

orderxxx, orderyyy

Can you please help me to pass two variables to a single web edit??

Thanks in advance


RE: DataTable - sasmitakumari - 07-19-2010

get values from data table and make them into a single string.
Ex:
Code:
DataTable.SetCurrentRow(i)
a = DataTable.Value("Col ID","Sheet ID")
DataTable.SetCurrentRow(j)
b = DataTable.Value("Col ID","Sheet ID")

t = a&","&b 'If a and b both are string
If not,
t = CStr(a)&","&Cstr(b)



RE: DataTable - SS001 - 07-20-2010

Thanks this logic works..Smile