Forum BigDB How to copy database objects?

Discussion and help relating to the PlayerIO database solution, BigDB.

How to copy database objects?

Postby vitsum » March 15th, 2013, 10:47 am

I need to copy a database object, but I don't know exactly which properties it will contain. Also it may contain Arrays.
I can loop through all properties, but how do I know what type each property has?
vitsum
 
Posts: 26
Joined: October 26th, 2012, 8:14 am

Re: How to copy database objects?

Postby TharosTheDragon » May 10th, 2013, 8:19 am

Are you doing this in Actionscript? If the typeof operator isn't specific enough, would flash.utils.getQualifiedClassName work?
TharosTheDragon
 
Posts: 17
Joined: February 6th, 2013, 7:56 am

Re: How to copy database objects?

Postby vitsum » May 10th, 2013, 11:35 am

i already solved the problem, don't remember how exactly, but yes, i used typeof in c#, and arrays gave me strange type, so i just copied string representation of this type and compare with this string to know if it is an array)
vitsum
 
Posts: 26
Joined: October 26th, 2012, 8:14 am


Return to BigDB



cron