my macro utility function to edit or create macro
My macro utility class to edit or create macro
ie. create an object instance which contains a list of macros
var $マクロス: Object // name it as you want, here MaKuRoSu!
$マクロス:=macross($input) // or macross()
with $input
macro xml text, or a File
or a collection of macro as objects.
If no arg current database macro xml file will be parsed (file named Macros.xml, subject to change to be more flexible)
$マクロス.macros // a collection of object
$rankaLee:=New object("name"; "Evaluate and replace/€"; "in_menu"; "true"; "type_ahead"; "false"; "version"; "2")
$rankaLee.text:="<text><method>Macro_evaluateAndReplace()</method></text>"
$マクロス.macros.push(rankaLee)
text attribute is not parsed for the moment
$マクロス.export()
if no origin file (ex: if the input is an xml string or an objects collection, default component path will be used)
File
$マクロス.exportToFile($yourFile) // 4D.File
This project contains also a form which could display and edit the Macross
class, a very simple list box.