I have been trying to have an email address show up in a label for a static element. But all text after and including the "@" character are dropped.
Line of text should be:
Send to rmhansense@sensiblesolutions.org Actually get:
Send to rmhansense First tried just by typing into the field for label. Typing it in is OK, no indication of trouble. But visually you can see that characters are dropped.
So I then tried programming the label on Form Entry. Got the same results.
Quote:LABEL(ElementName,"Send to rmhansense@sensiblesolutions.org")
Then I tried using @CHR(64), got same results.
Quote:LABEL(ElementName,"Send to rmhansense" + @CHR(64) + "sensiblesolutions.org")
OK, need to get more complex I guess:
This:
Quote:var vTemp as String
vTemp = "Send to rmhansense" + @CHR(64) + "sensiblesolutions.org"
Label(ElementName,vTemp)
and this:
Quote:var vTemp as String
//vTemp = "Send to rmhansense@sensiblesolutions.org"
Label(ElementName,vTemp)
give the same results.
From page 8 of the Programming Guide, dealing with invalid field names:
Quote:They contain operator characters. Sesame form element names cannot contain + - / * = < > [ ] ( ) { } ! ; @ and similar characters. They can include spaces, but it is not a good practice to do so. It is much better to use an underscore "_" between words, such as Home_Address or
Order_Number. If you find underscores distasteful, you can always use something like HomeAddress.
Keep in mind that we're talking about element names here - that is, the identifiers you use to refer to them in programming. This shouldn't stop you from having a label next to an element, typed with a space like this:
Home Address:
I realize the example given is referencing "space" but would suspect that this applied to all of the invalid characters for field names, not just the space. It specifically mentions that the invalid characters are for field names, and does not apply to Labels.
So, the question is: How do I get to use the "@" character in a label?