Quiz Method: AddAnswerForUser

AddAnswerForUser

(

UserId As String,

QueNumber As Integer,

Answer As String

) As Integer;

Parameters

[in] String UserId

User Identification to be stored with the answer.

[in] Integer QueNumber

The Question number for which the answer is stored.

[in] String Answer

The answer to be stored.

Description

Stores an answer for a question number for a particular user.

Return Values

Value

Description

0

on success

-1

when Question Number is invalid

-2

when the answer is empty

-3

when UserID is empty

-4

when the database is not set for any number of questions and is not ready to store answers

 

See Also