Developers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ankitgaur
Visitor

How to print “@“ Symbol in the XML label node?

We have developed one Roku web app and we want to add the functionality to Make login of user .
In App we will be getting Email address from the user. Which we want to display in xml label node.
We want to set email address suppose “abc@gmail.com” but it only displays “abc gmail.com” in the label node.

so how to display “@“ symbol in label node ?
Tags (1)
0 Kudos
3 REPLIES 3
destruk
Streaming Star

Re: How to print “@“ Symbol in the XML label node?

You could try replacing it with the chr code.  "abc"+chr(64)+"gmail.com" ?

8.4 Chr (ch As Integer) As String
Performs the inverse of the ASC function: returns a one-character string whose character has the specified ASCII, or control. Example:
print chr(35) 'prints a number-sign #
Using CHR, you can assign quote-marks (normally used as string-delimiters) to strings. The ASCII code for quotes - is 34. So A$=CHR(34) assigns the value " to A$.
Tags (1)
0 Kudos
ankitgaur
Visitor

Re: How to print “@“ Symbol in the XML label node?

Hi destruk,

Thanks for the reply.


We have tried the solution you provided but it still not showing "@" character of email address in the XML Label Node (Scene graph).
It successfully prints "@" character on the terminal.[/font]
Please provide any other solution for this scenario.
Tags (1)
0 Kudos
belltown
Roku Guru

Re: How to print “@“ Symbol in the XML label node?

I don't think your problem is that the Label node does not display the "@" character -- because it does. Most likely, you're not passing an "@" character into the Label node's text field.

Try a simple experiment: create a plain Label node in your Scene, with a hard-coded value containing an "@" character, i.e. not read from your XML and not computed in any way.
Tags (1)
0 Kudos
Community is Being Upgraded!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

We're sorry for this disruption — we’re excited to share what’s next!