Question : cant pass list

I am using silverlight3 to use a webservice to update a DB.

I cant pass a list of string to a service refernce service1.svc file.
I have tried many variations but I dont understand the error

ErrorValue of type 'System.Collections.Generic.List(Of String)' cannot be converted to 'System.Collections.ObjectModel.ObservableCollection(Of String)'.



this recieves the 3rd paramter

    <OperationContract()> _
Public Sub updatedataTest(ByVal myid As String, ByVal totalCorrect As Integer, ByVal mytestList As List(Of String))

I pass this list to the above by

 Public Sub updateDataTest(ByVal type As Integer, ByVal mytestList As List(Of String))
        Dim webservice2 As New trigTrainer4.ServiceReference1.Service1Client
        Dim myresultsList As New List(Of String)

              myresultsList = mytestList
            webservice2.updatedataTestAsync(myid, totalCorrect, myresultsList)
       

I get the  list string by

 Public ReadOnly Property myResultsTestList() As List(Of String)
        Get
            Return mytestList
        End Get

    End Property

Answer : cant pass list

Maybe try the following:

<code>

Here's also a sample fla:
http://vulturous.110mb.com/eefiles/MouseFollower.fla

Good Luck,

-V
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
import mx.transitions.Tween;
import mx.transitions.easing.Strong;

var xTween:Tween;
var yTween:Tween;
var followSecs:Number = 1;
var follower:MovieClip = _root.attachMovie("Follower", "follower", _root.getNextHighestDepth());
follower.onEnterFrame = mouseFollow;
	
	
function mouseFollow():Void {
	this.xtarget = _xmouse;
	this.ytarget = _ymouse;
	xTween = new Tween(this, "_x", Strong.easeOut, this._x, this.xtarget, followSecs, true);
	yTween = new Tween(this, "_y", Strong.easeOut, this._y, this.ytarget, followSecs, true);	
}
Random Solutions  
 
programming4us programming4us