help / creating external hit

Feb 5, 2008 at 5:07 PM
Hi there,

I'm totally knew to .net and trying to create Mturk external hit with the sdk, but I can not figure what's wrong with my code :

The debugger tell me I'm using a wrong type of variable, but I can not figure where after review of all my variables
("Value of type 'String' cannot be converted to '1-dimensional array of String'.")

Maybe someone could have a look and help me ?

Dim mt_client As New Amazon.WebServices.MechanicalTurk.SimpleClient()
Dim my_hit As New Amazon.WebServices.MechanicalTurk.Domain.HIT()

Dim My_hitTypeId As String
Dim My_title As String
Dim My_description As String
Dim My_keywords As String
Dim My_externalQuestion As New Amazon.WebServices.MechanicalTurk.Domain.ExternalQuestion
Dim My_reward As Decimal
Dim My_assignmentDurationInSeconds As Long
Dim My_autoApprovalDelayInSeconds As Long
Dim My_lifetimeInSeconds As Long
Dim My_maxAssignments As Integer
Dim My_requesterAnnotation As String
Dim My_qualificationRequirements As New System.Collections.Generic.List(Of Amazon.WebServices.MechanicalTurk.Domain.QualificationRequirement)
Dim My_responseGroup As String

My_hitTypeId = ""
My_title = "ALX TITRE"
My_description = "ALX DESCRIPTION"
Mykeywords = "alxkeyword1, alx_keyword2"
My_externalQuestion.ExternalURL = "http://www.google.com"
My_externalQuestion.FrameHeight = "600"
My_reward = 1
My_assignmentDurationInSeconds = 60 * 60
My_autoApprovalDelayInSeconds = 60 * 60 * 24 * 5
My_lifetimeInSeconds = 60 * 60
My_maxAssignments = 1
My_requesterAnnotation = "alx annotation"
My_qualificationRequirements.Clear()
My_responseGroup = "response groupe alx"

myhit = mtclient.CreateHIT(MyhitTypeId, Mytitle, Mydescription, Mykeywords, MyexternalQuestion, Myreward, MyassignmentDurationInSeconds, MyautoApprovalDelayInSeconds, MylifetimeInSeconds, MymaxAssignments, MyrequesterAnnotation, MyqualificationRequirements, My_responseGroup)

MsgBox(my_hit.HITId)