List of strings does not show in notesuiworkspace prompt method

Hi

I am using the following notesuiworkspace method to generate a prompt window in which users can select from a list of items.

The serverlist variable is a list that is declared like this:

Dim serverlist List as variant

ok = ws.Prompt( PROMPT_OKCANCELCOMBO, “enter the server name”, “Selecteer a server”,“”, serverlist )

The serverlist list is filled in another sub. But when the code comes at the prompt line the list field remains empty.

How can I show the list of strings ion the prompt field?

Regards

Subject: The problem is that is a LIST, not an ARRAY of strings…

which the ws.Prompt requires. Change it to an array and it will work.

Subject: List of strings does not show in notesuiworkspace prompt method

Just to test, place the prompt in the other Sub and see if it’s populated. If it is, you have a scope-of-variable issue. Making the Sub a function and returning the list might work (though I haven’t done that myself).

Subject: RE: List of strings does not show in notesuiworkspace prompt method

Hi

But I have declared the serverlist globally. That means that it is known in all subs and function, isn’t it?