Altova XMLSpy 2024 Professional Edition

This is a global field that returns a reference to the last form object that was created via CreateForm() or ShowForm().

 

Signature

lastform -> formObj : System.Windows.Forms.Form

 

Example

The following JScript code shows the form "FormName" as a dialog box.

 

CreateForm( "FormName" );
if ( lastform != null )
{
   lastform.textboxFirstName.Text = "Daniela";
   lastform.textboxLastName.Text = "Heidegger";
   var dialogResult = lastform.ShowDialog();
}

 

The values of both textbox controls are initialized with the help of lastform.

scr_cmd_lastform

© 2017-2023 Altova GmbH