ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
  • Retrieving the definition
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Retrieves the description of a type identified by its name.
Example
PROCÉDURE Proc(NomClasse is string)
 
// Récupère la définition de la classe connue par son nom
MaDéfinition is Définition
MaDéfinition = GetTypeDefinition(NomClasse)
New in version 28
Description_état is Définition = GetTypeDefinition(ETAT_CommandesClients)
Description_syntaxe is Description of Syntaxe = Description_état.DeclarationSyntax
// Parcours des paramètres de l'état
FOR EACH x OF Description_syntaxe.Parameter
Trace(x.Nom)
END
Syntax
<Result> = GetTypeDefinition(<Element name>)
<Result>: Definition
Definition variable.
<Element name>: Character string
  • Name of the class or structure for which the definition must be retrieved.
  • New in version 28
    Name of the window, page or report for which the Definition is to be retrieved.
Remarks

Retrieving the definition

If the class or structure is unknown, GetTypeDefinition returns a Null definition with a non-fatal error ("Invalid definition").
If the element is not allocated, GetTypeDefinition returns a Null definition with a non-fatal error ("Element not allocated").
The error cases can be processed:
  • by comparing the description to Null.
  • by checking the value of the ErrorOccurred variable.

Limits

  • In a project, you cannot retrieve the definition of a class or structure coming from:
    • an external component.
    • an internal component.
  • In an external component, you cannot retrieve the definition of a class or structure coming from the host project.
Component: wd280vm.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment