Pass a Frame between Applications
In my application I have a frame call frame1. I have added several edit boxes, lists, drop down combos. I other words, its a form that the user fills in. Now I want to save the frame (form) as a single object in a database and be able to retrieve it later. Or I want to pass the frame with components with it to another application.
This would save having to read each text field, edit box, combo list etc for storage as individual fields of a record.
Right now to save information you have to create and INI or Array and save individual strings, numbers, etc. I want to just say save the whole frame as an object. Then I could do something lik e "load frame1" "unload frame1" "save frame1 to sql database".
Re: Pass a Frame between Applications
This idea really comes from a product for java where saving objects are mapped to an SQL database.
Re: Pass a Frame between Applications
Although it'd be nice, I don't think you can do that.
Re: Pass a Frame between Applications
Your most likely correct. However, my guess is that the frame is an object since you add them to the application. Everything else added like combo boxes, text, are subobjects of the frame object and the frame object is a subobject of the application. At least that is a guess.
Re: Pass a Frame between Applications
since you can set the alterable value and string of things such as edit boxes and combo boxes in mmf 2.0, it would be rather easy to create a smart loop procedure which goes through all of them and saves their data according to, say their id and alterable string A. (given you have to use duplicated of the same object, and place them in runtime)
If you did this, all you would have to do is to set its id, and it would save and load automatically.
Re: Pass a Frame between Applications
Yes I agree this is possible. But it would be far easier if I could just issue one statement of save frame1 or load frame1. Then frames could be passed between applications (meaning the entire form and its edit fields) or game form.