how tp pass a string with newline command from one function to another

48 views
Skip to first unread message

Sourish Mallick

unread,
Aug 24, 2013, 7:17:09 AM8/24/13
to mercu...@googlegroups.com
Hi,

I have a scenario where i need to call a function 
Where
aRecievers(i)="Sourish"
Function is called with given Arguements
Activity "TextBoxBody","DIV","hello " &aRecievers(i)&  vbNewLine + " How are you ?","",PageName_3

called function 

Function Activity(Object,ObjectName,oValue,Index,oPageName)

but oValue displayes= hello Sourish how are you

but i am expecting

hello Sourish
how are you

VbNewline is not working.. :(

Regards
Sourish

code2a...@gmail.com

unread,
Aug 24, 2013, 10:41:33 AM8/24/13
to mercu...@googlegroups.com
Bangali ?
Sent on my BlackBerry® from Vodafone

From: Sourish Mallick <sourish....@gmail.com>
Date: Sat, 24 Aug 2013 04:17:09 -0700 (PDT)
Subject: how tp pass a string with newline command from one function to another
--
--
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 Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
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 Groups "QTP - HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mercuryqtp+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Sourish Mallick

unread,
Aug 24, 2013, 2:01:45 PM8/24/13
to mercu...@googlegroups.com
Any solution from any one!!!!!

mgkg...@gmail.com

unread,
Aug 24, 2013, 8:50:05 PM8/24/13
to mercu...@googlegroups.com, mercu...@googlegroups.com
Have you tried \n

asiqa...@yahoo.com

unread,
Aug 24, 2013, 8:50:52 PM8/24/13
to mercu...@googlegroups.com
Try this,

Dim str:str=“line1“&vbcrlf


Sent on my BlackBerry® from Vodafone

From: Sourish Mallick <sourish....@gmail.com>
Date: Sat, 24 Aug 2013 11:01:45 -0700 (PDT)
Subject: Re: how tp pass a string with newline command from one function to another

Any solution from any one!!!!!

Sourish Mallick

unread,
Aug 25, 2013, 2:11:33 AM8/25/13
to mercu...@googlegroups.com
yeah tried with that.. not working

Sourish Mallick

unread,
Aug 25, 2013, 4:31:27 AM8/25/13
to mercu...@googlegroups.com, asiqa...@yahoo.com
Not working re....

Even i tried

AddressLine="Hello  "&aRecievers(i)
AddressLine2="How are you"


AddressLine3=AddressLine & vbNewLine & AddressLine2

Activity "TextBoxBody","DIV",AddressLine3,"",PageName_3


Still Not Working

Sourish Mallick

unread,
Aug 25, 2013, 11:12:45 AM8/25/13
to mercu...@googlegroups.com
Finally Did it !!!!!!!!!!!!!!!!!!!!!!!!!!

<br/> worked... :)
thanks to all of you


--

Anil Rai

unread,
Aug 26, 2013, 3:45:42 AM8/26/13
to mercu...@googlegroups.com, Sourish Mallick
Try with chr(13) in your code:

AddressLine3=AddressLine & chr(13) & AddressLine2

Satnam Singh

unread,
Aug 26, 2013, 10:27:25 AM8/26/13
to mercu...@googlegroups.com
Hi Sourish,

Please elaborate, how did you use <br/> in the code, for passing the parameters to your function call.

Thanks

Sourish Mallick

unread,
Aug 26, 2013, 11:04:33 AM8/26/13
to mercu...@googlegroups.com
Activity "TextBox","DIV",AddressLine &"<br/>"&"<br/>"& Addressline2,"",PageName_3
 
Is it ok ?
--
 
 
Regards,
Sourish Mallick

anshu...@gmail.com

unread,
Aug 27, 2013, 9:23:00 AM8/27/13
to mercu...@googlegroups.com



Sent from Samsung MobileMobileghosthkmmmmmmmvmbmbmklkmvm bmp Bibb mm kgggktjkpjjjjjslxlxfg

Anil Rai <anil...@gmail.com> wrote:
Try with chr(13) in your code:

AddressLine3=AddressLine & chr(13) & AddressLine2


Reply all
Reply to author
Forward
0 new messages