Hello, i am not nooby on terms of object programing although i have started a few week with b4a, for android platforms.
I will try to explain what i think is a kind of bug that is getting me crazy.:BangHead:
I have defined a type such as:
Type SaeLine_ (descriptionField As String, _
idField As String, _
publicIdField As String, _
routesField As List )
i have another type defined as :
Type SaeRoute_(Descripcion As String, _
idLine As String, _
idRoute As String, _
PublicId As String, _
Tipo As String)
the type list is according to the documentation a type yhat accepts objects as members of the list ( something standard by the way).
I have defined two variables, one type Saeline_ and other type SaeRoute_
Well here is the problem, when i fill up the variable SaeLIne where the element routeFields have more than one SaeRoute element in the list, all the elements stored are all the same as the last one inserted. I have tryed diferent codes to check was not my code, bau allways the same. I have logged the element i am inserting, and check that every one is different, but the result is that when i "get" the elements inside the list, are all identical to the last inserted.
Can someone give me some light to this problem??
Thankyou
I will try to explain what i think is a kind of bug that is getting me crazy.:BangHead:
I have defined a type such as:
Type SaeLine_ (descriptionField As String, _
idField As String, _
publicIdField As String, _
routesField As List )
i have another type defined as :
Type SaeRoute_(Descripcion As String, _
idLine As String, _
idRoute As String, _
PublicId As String, _
Tipo As String)
the type list is according to the documentation a type yhat accepts objects as members of the list ( something standard by the way).
I have defined two variables, one type Saeline_ and other type SaeRoute_
Well here is the problem, when i fill up the variable SaeLIne where the element routeFields have more than one SaeRoute element in the list, all the elements stored are all the same as the last one inserted. I have tryed diferent codes to check was not my code, bau allways the same. I have logged the element i am inserting, and check that every one is different, but the result is that when i "get" the elements inside the list, are all identical to the last inserted.
Can someone give me some light to this problem??
Thankyou