Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newline character in LotusScript? 1

Status
Not open for further replies.

fishkake

MIS
Feb 11, 2004
130
GB
I'm using the fieldAppendText method to build up a list of empty fields, for a rather complex input validation script, but I can't find a way to add a newline character. I can use Evaluate and @NewLine (or whatever the exact words are), but surely there is a more efficient way of doing this?!

Before you suggest it, I don't want to use Rich Text, I want it in a regular text field.
 
Wrong! :)

I'm working in LotusScript, not Formula... And I was looking for a way to do it without using the "Evaluate" statement, which I would have to do, yes?
 
Why don't you try using the NotesItem method AppendToTextList ?
Sure, you'll have to declare a multi-value field, but all "values" will be displayed and you can set them to display with NewLine in the field parameters.

Otherwise, you need the chr($) function, with which you can add chr$(13) to your text line.

Pascal.
 
And Pascal gets it! ;-)

Thanks mate, that was exactly what I was looking for. In the help, why isn't this in the "See Also" section of the @Char help? It seems silly, they normally cover language crossovers in the help files...

Thanks again!
 
Ahh, it must be said that Notes Designer Help is helpful - as long as you don't need anything more complicated than the very basic issues.

I have the same kind of gripe with Help database examples. Sure, they show you an example of the simplest case you can encounter with a given function, but if the function or formula has several possible variants, you'll only find the example pertaining to the simplest form.

It is nice to have a challenge now and then, but it can be frustrating to be challenged by the very tool that is supposed to help.

Pascal.
 
This is very true. Under the LotusScript entry for "IF" the "Example" is as follows:

Dim x As Integer
If x% > 0 Then Print FALSE Else Print TRUE

I wanted two conditions, and was trying to join them together with &, +, &&, || etc etc without success, before finally discovering the "And" operator!! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top