OP Start Remote Connection

4D - Documentation   Français   English   German   4D Open for 4D, Command Theme List   4D Open for 4D, Command Alphabetical List   Back   Previous   Next

version 1.5


OP Start Remote Connection (path; user; password; async) Longint

ParameterTypeDescription
pathStringPath
userStringUser Name
passwordStringPassword
asyncBooleanInitiate connection asyncronously
Function resultLongintError code result for the function

Description

OP Start Remote Connection initiates a new remote connection using ARA on Macintosh or RAS on Windows NT or Windows 95.

The path parameter is the pathname to an ARA client document when using ARA, or a phonebook entry when using RAS. If the path parameter is passed as an empty string, a getfile prompts the user for the file (Macintosh). The user parameter is not implemented on ARA at this time. If the password parameter is passed as an empty string, OP Start Remote Connection uses the password stored in the file (if any).

Examples

Asynchronous:

   C_LONGINT(status1;$ErrCode;error)
   C_STRING(100;devType;devName)
   C_TEXT($errorText)

   $ErrCode:=OP Start Remote Connection("Home";"MyName";"MyPassword";True)

   Repeat
      $ErrCode:=OP Remote Connection Status(status1;error;devType;devName)
   Until(status#1) 

   $errorText:=OP Get Error Text($ErrCode)
   ...
   $errorText:=OP End Remote Connection()

Syncronous:

   $ErrCode:=OP Start Remote Connection("Home";"MyName";"MyPassword";False)
      `yields control back once connected or if error has occured

See Also

OP End Remote Connection, OP Remote Connection Status.


4D - Documentation   Français   English   German   4D Open for 4D, Command Theme List   4D Open for 4D, Command Alphabetical List   Back   Previous   Next