Recreating a binary stack from xml text

Alejandro Tejada capellan2000 at gmail.com
Mon Feb 20 22:05:56 EST 2012


Hi Geoff,


Geoff Canyon Rev wrote
> 
> [snip]
> For FileMaker, it's the easy database, but equally important, it's the
> fact
> that all items -- scripts, layouts, columns, tables, etc. -- are
> abstracted
> from their names. In FileMaker, if you change the name of a table, then
> everywhere in any script that refers to that table, the script changes
> automatically to match. Change a layout name, same thing. That's something
> I wish every environment I use could have. Given that FileMaker has had
> this since at least 1994 or so, it's frustrating that no one else has
> picked it up. It's one of those things that seems obvious once you've
> experienced it </rant>
> 
> So I agree, reconciling the source when someone changes the name of an
> object would be a pain.
> 

This is exactly the reason that drive me to ask
if it is possible to rebuilt a binary stack from xml
source: Does every control keeps its original ID?

Because if that were the case, then it's only a matter
of use only IDs to reference controls in the scripts and
never, never use their names.

This should be easy to add in the script editor as a menu
option selectable by the developer:
"Use only IDs References."
In this way, every time that you compile a script, the
script editor verify that after every reference to a control
there is the keyword "ID" and a valid reference to an
existing control or shows a warning to the developer.

Another way is to make the conversion automatically
in the script editor while compiling, adding the
selectable menu option to:
"Convert Controls Names to IDs"

Of course, if there is a message to catch a name changed,
like the message "selectionchanged" for selections,
then it's just a matter of writing a plug-in to catch the
renaming event and proceed to search and replace it
in all the scripts... (Honestly, I find scary an automatic
search and replace like that)

Well, suppose that every challenge is sorted and it's possible
to use xml files with version control software as GIT for
teamwork in this platform, then...
Would be possible to use the browser to edit scripts and
control properties and using LiveCode Server to output a
binary stack to download and run locally???

Just a wild guess, but an interesting one!

Al




--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Recreating-a-binary-stack-from-xml-text-tp4400122p4405848.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list