Prompt Method

I have a button that calls a Prompt. There is a field on the form I want filled in with the result from that prompt and it is not working. What am I missing? Here is the code:Sub Click(Source As Button)

Dim w As New NotesUIWorkspace

Dim uidoc As NotesUIDocument

Dim response As Variant

Dim values(5) As Variant

values(0) = "SS Mileage"

values(1) = "Other Mileage"

values(2) = "Lunch"

values(3) = "HW/SW"

values(4) = "Parking"

values(5) = "Miscellaneous"

response = w.Prompt (PROMPT_OKCANCELLIST,	"Select an Expense Type",	"Select an Expense Type.",	values(0), values)

If Isempty (response) Then

	Messagebox "User canceled", , "Expense not added"

Else

	Set uidoc = w.CurrentDocument

	Call uidoc.FieldSetText("FieldValue0", response)

			

End If		

End Sub

Subject: Prompt Method

The problem is in putting non-text (a variant) into something requesting text.

Instead of …

Call uidoc.FiedSetText(“FieldValue0”, response)

try

Call uidoc.document.FieldValue0 = response

call uidoc.reload

Collin

KC8TKA

Subject: RE: Prompt Method

This doesn’t work. It won’t even let me save it, it results in an unexpected error like there is something wrong with the line and I’m not sure what that is. Any other ideas?