WA Get context
WA Get context ( {* ;} object ) -> contextObj
Parámetros | Tipo | Descripción | |
---|---|---|---|
* | Operador | → | Si se especifica, object es un nombre de objeto (cadena). Si se omite, object es una variable. |
object | Objetos de formulario | → | Nombre del objeto (si se especifica *) o Variable (si se omite *). |
contextObj | Object | ← | Context object if previously defined, otherwise null . |
Descripción
El comando WA Get context
recupera el objeto de contexto definido para $4d
en el área Web designada por los parámetros * y object utilizando WA SET CONTEXT
. If WA SET CONTEXT
was not called for the web area the command returns null
.
nota
The command is only usable with an embedded web area where the Use embedded web rendering engine and Access 4D methods parameters are set to true
.
Ejemplo
Checking if a context exists:
var $contextObj:=WA Get context(*; "myWebArea")
If ($contextObj=Null)
ALERT("No context set for this web area.")
Else
ALERT("Context is defined!")
End if
Ver también
Propiedades
Número de comando | 1849 |
Hilo seguro | ✗ |