4D v20.1webServer.start( ) |
||||||||||||||||||||||||||
|
4D v20.1
webServer.start( )
|
Property | Type | Description | |
success | Boolean | True if the Web server was correctly started, False otherwise | |
errors | Collection | Error stack (not returned if the Web server started successfully) | |
[ ].errCode | Number | Error code | |
[ ].message | Text | Description of the error | |
[ ].componentSignature | Text | Internal component signature |
Note: If the Web server was already launched, an error is returned.
C_OBJECT($settings;$webServer;$result)
$settings:=New object("HTTPPort";8080;"defaultHomepage";"myAdminHomepage.html")
$webServer:=WEB Server
$result:=$webServer.start($settings)
If($result.success)
//...
End if
Product: 4D
Theme: Web Server
4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)