Yeh... It's working fine
Thanks boss... On Sat, Aug 18, 2012 at 4:34 PM, sachin mahajan <[email protected]> wrote: > hi vamsi > > str ="ABC,BGV,DRRE" > a=split(str,",") > LB=Lbound(a) > UB=Ubound(a) > For i= LB to UB > print(a(i)) > Datatable.GetSheet("Action1_2").SetCurrentRow(i+1) > Datatable.Value("List","Action1_2")=a(i) > Next > > > Above code is running fine.Look into it ..... > > On 8/18/12, vamsi reddy <[email protected]> wrote: > > Hi All, > > > > I faced a qn in an interview > > > > 1. There is some data(array.....etc..) > > 2. I want to export in to datatable > > 3. Here i am using below code , result displays only last value > > > > How to handle... > > > > > > > > str="ABC DEF GHI" > > d=Split(str," ") > > > > For i=lbound(d) to Ubound(d) > > msgbox d(i) ' > > Datatable.Value("Test_Column",dtglobalsheet)=d(i) > > Next > > > > *Result* > > > > > > [image: Inline image 1] > > > > -- > > Vamsi Reddy > > * > > * > > > > * * > > > > -- > > You received this message because you are subscribed to the Google > > "QTP - HP Quick Test Professional - Automated Software Testing" > > group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > > http://groups.google.com/group/MercuryQTP?hl=en > > > > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en > -- Vamsi Reddy * * * * -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en
