Please enable JavaScript to view this site.

Altova Authentic 2020 Desktop

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

© 2019 Altova GmbH