This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
WEB Server list
|
WEB Server list -> Function result | ||||||||
Parameter | Type | Description | ||||||
Function result | Collection |
![]() |
Collection of the available Web Server objects | |||||
The WEB Server list command returns a collection of all Web server objects available in the 4D application.
A 4D application can contain anywhere from one to several Web servers:
All available Web servers are returned by the WEB Server list command, whether they are actually running or not.
Note: The default Web server object is automatically loaded by 4D at startup. On the other hand, each component Web server that you want to use must be instantiated using the WEB Server command.
You can use the name property of the Web server object to identify the database or component to which each Web server object in the list is attached. For a detailed description of the Web server object, please refer to the WEB Server command.
We want to know how many running web servers are available:
C_COLLECTION($wSList)
C_LONGINT($vRun)
$wSList:=WEB Server list
$vRun:=$wSList.countValues(True;"isRunning")
ALERT(String($vRun)+" web server(s) running on "+String($wSList.length)+" available.")
Product: 4D
Theme: Web Server
Number:
1716
Created: 4D v18 R3
4D Language Reference ( 4D v20 R7)