xml or other complete text representation of a control?

Doug Lerner doug at webcrossing.com
Sat Feb 14 02:37:47 EST 2004


I don't get any result from "the properties" when I try this with graphic or
field objects. Maybe that only works for custom properties?

doug

On 2/14/04 4:29 PM, "Phil Davis" <davis.phil at comcast.net> wrote:

> Isn't that pretty much what the SC-to-Rev converter does with SC projects?
> 
> One part of the process might look something like:
> 
> on convertControlToText
> put the properties of control x into tProps
> combine tProps with cr and "="
> put tProps into url "file:control-x-props"
> end convertControlToText
> 
> 
> on convertTextToControl
> put url "file:control-x-props" into tProps
> split tProps with cr and "="
> set the properties of the templateControl to tProps
> create control
> end convertTextToControl
> 
> 
> The above is pseudocode - it won't work as is, and a lot is left out, but it
> conveys the idea.
> 
> Phil Davis
> 
> 
>> -----Original Message-----
>> From: use-revolution-bounces at lists.runrev.com
>> [mailto:use-revolution-bounces at lists.runrev.com]On Behalf Of Doug Lerner
>> Sent: Friday, February 13, 2004 8:20 PM
>> To: How to use Revolution
>> Subject: xml or other complete text representation of a control?
>> 
>> 
>> Is there some way of generating an xml or other complete text
>> representation
>> of a graphic or field or other control for writing to a file and then
>> re-importing?
>> 
>> doug
>> 
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution



More information about the use-livecode mailing list