Das Notes Forum

Domino 9 und frühere Versionen => Entwicklung => Thema gestartet von: Zimmi am 04.04.03 - 11:35:46

Titel: evaluate will nicht :-(
Beitrag von: Zimmi am 04.04.03 - 11:35:46
Hallo,

kann mir einer auf die Sprünge helfen ???

Habe in einem Script folgende Formel eingebaut ...

dim var1 as Variant   
var1 = uidoc.fieldgettext("AuswahlListe")
formel = {@Prompt([OKCANCELLISTMULT] : [NoSort]; "Titel" ; "Auswahlliste :"; "" ;} & _
Cstr(var1) & {)}
var = Evaluate(formel)

Call uidoc.fieldsettext("VerzeichnisAuswahl", Cstr(var))
Call uidoc.refresh

Das Feld "Auswahlliste" enthält eine Textliste, die ich mir über den Prompt anzeigen lassen will.

Vielen Dank schon mal ...
Zimmi
Titel: Re:evaluate will nicht :-(
Beitrag von: Rob Green am 04.04.03 - 11:49:22
wüßte nicht, daß es geht...
HELP:

Using the Evaluate statement  

Beispiel
The Evaluate statement in Domino Designer has the following syntax:
returnValue = Evaluate( notesFormula [, notesObject ] )
NotesFormula is a string variable, expression, or constant.
notesObject is optional and provides context for the formula; for example, if the formula accesses a field, notesObject must be the NotesDocument object that contains the field.
returnValue is an array whose type and number of elements reflect the formula result; a scalar value is returned to element 0 of the array. You should use a variant for the return value since you may not know how many elements are being returned.
The following @functions, which affect the user interface, do not work within an Evaluate statement: @Command, @DbManager, @DbName, @DbTitle, @DDEExecute, @DDEInitiate, @DDEPoke, @DDETerminate, @DialogBox, @PickList, @PostedCommand, @Prompt, and @ViewTitle.
Titel: Re:evaluate will nicht :-(
Beitrag von: Zimmi am 04.04.03 - 12:42:35
Hallo Rob,

Danke -> muss wohl blind gewesen sein :-)

Viele Grüße von
Zimmi