Das Notes Forum

Domino 9 und frühere Versionen => ND8: Entwicklung => Thema gestartet von: skywook am 08.10.13 - 11:33:09

Titel: LotusScript Format
Beitrag von: skywook am 08.10.13 - 11:33:09
Hallo,
ich nutze in Script öfters den Befehl format(xx) um z.B. Zahlenformate zu ändern in  => 0001

Gibt es diesen Befehl auch als Formel ?

Für einen Tipp wäre ich dankbar.
Titel: Re: LotusScript Format
Beitrag von: koehlerbv am 08.10.13 - 11:43:35
@Text
Titel: Re: LotusScript Format
Beitrag von: skywook am 08.10.13 - 14:38:04
Vielen Dank,

ich habe mit @text schon gearbeitet, aber in diesem Fall verstehe ich die Syntax nicht.
Welchen Parameter muss ich für 0001 nehmen?
Titel: Re: LotusScript Format
Beitrag von: Klafu am 08.10.13 - 14:43:52
Die Hilfe sagt es so

This example returns 123.45.
@Text(123.45)
Titel: Re: LotusScript Format
Beitrag von: skywook am 08.10.13 - 14:49:31
Glaub ich habe mich falsch ausgedrückt.

Ich habe ein Zahlenfeld; Wert = 1 dies möchte ich in einem Textfeld so anzeigen 0001
Titel: Re: LotusScript Format
Beitrag von: Bastel123 am 08.10.13 - 14:51:30
@Right("0000" + @text(_number);4)
mit:  _number <> variable als Zahl
Titel: Re: LotusScript Format
Beitrag von: Driri am 08.10.13 - 14:52:36
Vorausgesetzt, in dem Feld ist maximal eine vierstellige Zahl enthalten :

@Right("000"+@Text(Feld);4)

Titel: Re: LotusScript Format
Beitrag von: skywook am 08.10.13 - 14:56:14
VIELEN DANK !! :)