TE Edit Control Java / HTML-JavaScript Help
Product page

TerDocName

Set or retrieve the current document name.

boolean TerDocName( get, name)
boolean get;Set to true to retrieve the current document name, or set to false to set the new document name.
String name;Set to the new document name if the 'get' parameter is set to 'false'. This parameter is ignored if the 'get' parameter is set to true.

Return Value: This function returns true if successful.

Upon successful return if the 'get' parameter is set to true, you can retrieve the current document name as following:

  if (TerDocName(true,"")) {
     DocName=tej.TerGetOutStr("name");  // get the name output value
                                        // from the previous call to
                                        // TerDocName method
  }