Das Notes Forum

Domino 9 und frühere Versionen => Entwicklung => Thema gestartet von: Gerhard am 01.12.05 - 11:41:45

Titel: Feldkonvertierung
Beitrag von: Gerhard am 01.12.05 - 11:41:45
Hallo zusammen !

Ich muss den Inhalt eines Richtext-Feldes (nur Text) in ein Textfeld kopieren, wie mach ich das ?

neues feld = convert_irgendwie(altes_rich_text_feld)

Hat da wer einen Hinweis ?

Danke !
Titel: Re: Feldkonvertierung
Beitrag von: Glombi am 01.12.05 - 11:49:46
So:

Returns the contents of a rich text item as plain text.
Defined in NotesRichTextItem

Syntax
plainText$ = notesRichTextItem.GetFormattedText( tabstrip, lineLength% )


Parameters
tabstrip
Boolean. If True, tabs are replaced by spaces in the resulting plain text. If False, tabs are retained.
lineLength%
Integer. Number of characters at which to wrap (carriage return and line feed) lines of text. Zero means 80 characters. Words without white space are not wrapped.
Return value
plainText$
String. The contents of the rich text item, as plain text.

Andreas
Titel: Re: Feldkonvertierung
Beitrag von: Thomas Schulte am 01.12.05 - 11:50:15
Abstract ist eine Methode der Richttext Klasse. und die findest du in der Online Hilfe.
Titel: Re: Feldkonvertierung
Beitrag von: Axel am 01.12.05 - 13:08:21
Abstract ist eine Methode der Richttext Klasse. und die findest du in der Online Hilfe.

Das Ganze gibt's auch als Formelfunktion @Abstract


Axel

Titel: Re: Feldkonvertierung
Beitrag von: Gerhard am 01.12.05 - 13:37:46
Hallo Axel !
Das ist super, da war ich auch schon mal in der Hilfe ....
Allerdings gibts da soviele Möglichkeiten beim abstract ...
ich brauch nur die ersten 80 Stellen herausschneiden, sonst nix...
Weisst Du aus dem Stegreif wie das zu formulieren ist ?
Titel: Re: Feldkonvertierung
Beitrag von: Axel am 01.12.05 - 14:06:56
@Abstract( [TryFit] ; 80 ; "" ; "Name des RTF-Feldes" )


Axel



Titel: Re: Feldkonvertierung
Beitrag von: Gerhard am 01.12.05 - 14:38:04
danke vielmals, perfekt ..... funzt ....
have a nice day !