I'm getting an error about object not being set to an instance of an object. I know it has something to do with the New keyword and when it goes to add data to the list it needs to have the space for it but I don't know what the format is to do that. Can someone point it out?
VB Code:
Public Class dataStructure Structure VideoEyeAnalysis Dim second_Stamp As List(Of Integer) Dim micro_SecondStamp As List(Of Integer) Dim x_coOrdinates As List(Of Single) Dim y_coOrdinates As List(Of Single) Dim leftEye_Validity As List(Of Integer) Dim rightEye_Validity As List(Of Integer) Dim distance_measure As List(Of Single) End Structure End Class '24 = trials, 1 = 0 or 1 (number of times the clip is played) Public VideoEyeData(24, 1) As dataStructure.videoEyeAnalysis 'declare 'On collecting data event I add data like so but this is wrong- how do I use the New word here to create the data point: VideoEyeData(trial_Count, videoPlay_Count).x_coOrdinates.Add _ 'New have to go here? ((gazeData.GazePosXLeftEye + gazeData.GazePosXRightEye) / 2)




Reply With Quote