CreatePollEntry
method
Creates a new Poll Entry in a Poll. The display options for the newly-created
Poll Entry are determined by the Poll.
Syntax
C++
HRESULT CreatePollEntry
(
BSTR Question,
ERUTextFormat
QuestionFormat,
VARIANT Choices,
LONG CreateOptions,
IERUItem** ppPollEntry)
Scripting
languages
Set PollEntry
= Object.CreatePollEntry
(
Question
as String,
QuestionFormat
as ERUTextFormat,
Choices
as VARIANT,
CreateOptions
as Long) |
Parameters
Question
The question you want users to vote on.
QuestionFormat
Indicates whether the Question
parameter is in HTML or plain text format.
For further information, see ERUTextFormat.
Choices
Contains a SAFEARRAY of BSTRs listing the choices for the
question. There must be at least two choices.
CreateOptions
One or more values from the ERUCreateOptions
enumeration, logically OR'ed together. Legal values include:
ppPollEntry
Upon return, an IERUItem interface pointer
to the newly-created Poll Entry.
Return value
C++
The return code. |
Scripting languages
An IERUItem interface pointer
to the newly-created Poll Entry. |
|
Home
Interface
IERUPoll
See also
Creating Items |