Das Notes Forum
Domino 9 und frühere Versionen => ND6: Entwicklung => Thema gestartet von: Madmission am 17.02.05 - 11:13:24
-
Hallo an alle!!
Hab so ne kleine frage, gibt es eigentlich die Function @thisvalue auch im LS, denn ich finde in der hilfe nichts. Damit ich alles dynamisch halten kann und keine felder hardcodieren muss.
Gruss Madmission
-
Gibt es:
Beispiel
In a document in read or Edit mode, returns the contents of a field you specify, as a string. If the field is of type numbers or date-time, its contents are converted to a string.
Defined in
NotesUIDocument
Syntax
textValue$ = notesUIDocument.FieldGetText( [ fieldName$ ] )
Parameters
fieldName$
String. Optional. The name of the field that has the contents you want. If you don't specify a fieldName$, the method returns the contents of the current field.
Return value
textValue$
String. The contents of the field you specified.
Den aktuellen Feldnamen bekommst Du mit
fieldName$ = notesUIDocument.CurrentField
Andreas
-
Kleiner Tipp: Sowas bekommt man einfach und schnell heraus, wenn man die Designer Hilfe zu dem Befehl öffnet. Dort steht dann zu @ThisValue
@ThisValue
Rückgabewert
Wert
Der Wert des aktuellen Felds.
Verwendung
Diese @Funktion gibt außerhalb einer Feldformel eine leere Zeichenfolge zurück.
Diese @Funktion ist zum Schreiben von portierbarem Code geeignet. Verwenden Sie @ThisValue anstelle des Namens des aktuellen Felds.
Entsprechungen in anderen Sprachen
FieldGetText-Methode in LotusScript, NotesUIDocument-Klasse
Andreas