[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #3089: 3.21.0 destroys my own CopyModel() method.


http://gambaswiki.org/bugtracker/edit?object=BUG.3089&from=L21haW4-

Comment #3 by Christof THALHOFER:

The code creates a 'Model', which is an object that contains (within others) a date variable with data.
Then it creates a JSON string which contains the variables and the data of the Model.
Then it creates a new Model and fills it from this JSON string.

The code crashes when it should create and fill a date variable 'testdate' from the JSON string:

TDbCModel.CopyModel crashed with error 'CModel.FromString Error: Type mismatch: wanted Date, got String instead' in 'CModel.FromString.125'


----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----