Hi Guys,
Can print a single value to a msg box but struggling with syntax to print 2.
Tried & + but no go.
Thanks
Hi Guys,
Can print a single value to a msg box but struggling with syntax to print 2.
Tried & + but no go.
Thanks
Hello,
Plz use + symbol… CompanyEmail(0)+CompanyName(0).
Hey Buddy, tried that, also tried &
Thanks
It should work fine…Message box will allow only string values… May I know what type of value you are getting in CompanyName(0) and CompanyEmail(0).
Plz try CompanyEmail(0).ToSting+” “+CompanyName(0).ToString
Using StudioX.
These 2 vars are from a matches output, ienumerable.
Var 1 = CompanyEmail(0)
Var 2 = CompanyName(0)
I can print both to msg box but must be individual msg boxs.
Can also print to Excel.
If you are outputting in different message boxes what output you are getting? Can share the screenshot?
Plz try the below expression: string.Format(CompanyName(0))+string.Format(CompanyEmail(0))
I tried to print 2 string values concantanated with “+” and it’s working.
Hello,
What is the error that you are getting?
Thanks!
Athira
As you can see it wont accept that string that you posted.
I created 2 quick variables, wrote them both to a single msg box on 2 seperate lines, this works fine…
These Must be concatenate if they are of string type variable(by seeing the name of variable). This isn’t giving error. PFB SS -
Hi Guys,
A couple of more shots might help.
The data type of both the vars.
The output var for the CompanyName.
Lastly another try…
Hello,
Can you please try like this in the advance editor of message box:
Saved.Values(Of System.String)(“Day”)+Saved.Values(Of System.String)(“Today”)
Note: I have declared the variable as string, so I used System.String. Please replace it with your variable type.
Thanks!
Athira
Hi,
Those 2 vars, Day + Today were just to prove that I could print 2 messages in the same msg box so please ignore.
Its these 2 in the screenshot that im getting the error.
Thank you.
Please Replace Day and Today with “CompanyEmail(0).ToString” and “CompanyName(0).ToString”.
Thanks!
Athira
Hi,
Sorry but im not understanding that string, ive tried it anyway, im sure ive errored it.
My 2 vars are.
CompanyName(0) and CompanyEmail(0)
Thank you
Saved.Values(Of System.String)(“CompanyName(0).ToString”)+Saved.Values(Of System.String)(“CompanyEmail(0).ToString”)
Can you please hover over error icon and see what’s the error? Also, try to remove .ToString and see if error is different.
Hi,
Tried removing the .ToString but still an error.
Please find shot of before I removed the .ToString.
Thanks for your help its much appreciated.
It’s weird. Can you please hover over the error you are getting when you try to concatenate both variables like this. Ideally this should work:
CompanyEmail(0)+CompanyName(0)
Thanks!