PDA

View Full Version : Quickly convert your A5v1-4.5 forms to v5


ABC123

John Magno
07-30-2002, 02:02 PM
Ever wondered if there was a quick and easy way to convert all your forms from a previous A5 version to v5? Well here it is! This code uses the new A5v5 function called evaluate_template() which is a very powerful function. Consult your Xbasic documentation for more examples of this function.

Create a new Xbasic script and paste the contents below. For safety make sure you have a backup of all your forms before running this code.

frms = a5.Form_Enum()
cmd = *for_each(x,"p = form.load(" + quote(x) + ");p.command(\"design\");p.command(\"file_save\");p.close()",frms)
evaluate_template(cmd)