/* Filename:    J011_buildForm.js
 * Description: Building and showing form on Gui
 * Copyright:   2006 The Code Corporation. Please see http://www.codecorp.com/jsLicensing.html for information regarding copyright and grant of license.
 * $Revision: 118 $
 * $Date: 2006-12-05 16:26:51 -0700 (Tue, 05 Dec 2006) $
 */
 
var frmForm1 = new gui.Form(null,null);
var lblPrompt =new gui.Label("Enter number");
var editData = new gui.Edit(null, editData_Enter); //opens null edit field, uses editData_Enter to fill edit field

//data entry to edit field then clears it
function editData_Enter()
{
	gui.statusText = editData.Text;
	editData.Text = "";
}

//main code puts controls on screen in this order
frmForm1.append(lblPrompt);
frmForm1.append(editData);


gui.showForm(frmForm1); //write form to screen
