Lescasse Consulting
 Home    Company    News    Prices    Download    Buy    Forums   
Read Me
Buy
Forums
Resume
AntiSpam 1.2
wBackup 1.11
NetAccess 2.0
Visual APL 1.0 
APL+Win 8.0 
APL+Win Products 
APL+Win Objects™ 
APL+Win Training 
APL+Web Services
APL+Web Component 
APL+ History
Dyalog.Net Tutorial
Conferences 
Powerpoint
White Papers
Web Hosting
References
Links
 
APL+Win Objects™ 6.0

TADO5
TADO5 Tutorial
TAPLDraw5
TAPLEdit5
TAPLSession5
TAbale5
TAboutBox5
TAccess5
TAgent5
TBlatMail5
TButton5
TCDO5
TCRC5
TCancelButton5
TCheck5
TCheckGroup5
TChildForm5
TChooseColor5
TChooseFont5
TClipBoard5
TClock5
TCodeStats5
TColors5
TCombo5
TComboDrive5
TComboFilter5
TComboList5
TComboTree5
TCommandBar5
TCommandButton5
TControlClass5
TCueCard5
TDHTML5
TDHTMLEditor5
TDateTime5
TDateTimeFr5
TDates5
TDemoHandlers5
TDisplay5
TDOS5
TDualSelect5
TEdit5
TEditAmount5
TEditDir5
TEditEnter5
TEditFile5
TEditGrid5
TEditList5
TEditListview5
TEditMenu5
TEditNum5
TEditSelect5
TEditSpin5
TEmail5
TError5
TExampleForm5
TExcel5
TExcel5 Tutorial
TFindReplace5
TFOne5
TFTP5
TFTP5 Tutorial
TFileCompare5
TFileMenu5
TFileMenuDef5
TFlatButton5
TForm5
TFormClass5
TFormEditor5
TFrame5
TGetDir5
TGif5
TGifForm5
TGifWb5
TGoMenu5
TGraphX5
TGrid5
TGridDisplay5
TGridPrint5
TGUID5
THLine5
THTML5
THTML5 Tutorial
THTTP5
THelp5
THelpMenu5
TImagelist5
TInfo5
TIniFile5
TInstall5
TInternet5
TJpg5
TJpgWb5
TLabel5
TList5
TListview5
TLock5
TLogs5
TMAPI5
TMath5
TMDIForm5
TMSOutlook5
TMaskEdit5
TMedia5
TMenu5
TMessage5
TModalCall5
TMsgBox5
TNavigator5
TNetwork5
TNonVisualClass5
TODBC5
TOKButton5
TObject5
TOpenFile5
TOption5
TOptionGroup5
TOutlook5
TOutlookMail5
TOWCSpread5
TPDF5
TPFKeys5
TPage5
TPassword5
TPicture5
TPing5
TPopupMenu5
TPowerpoint5
TPowerpoint5 Tutorial
TPrinter5
TProgress5
TProgressDlg5
TQuestion5
TRegistry5
TRegistryKey5
TResource5
TRichEdit5
TSPX5
TSQLDMO5
TScheduler5
TScroll5
TSelector5
TSpinner5
TSplitter5
TStatus5
TStopWatch5
TTest5
TTestError5
TTextFile5
TTimer5
TTip5
TTipForm5
TTLI5
TToolBar5
TToolbox5
TToolsMenu5
TTrackbar5
TTranslate5
TTree5
TVLine5
TViewMenu5
TWebBrowser5
TWebServer5
TWebSite5
TWebSiteNet5
TWinMenu5
TWord5
TYesNo5
    Visits:  2650 (61 on line) Last Update: Dec 5, 2003  
    TNetwork5    Printer Friendly  
 
Description   Inheritance   Example   Properties   Methods
 
 Description

The non visual TNetwork5 Object performs various network actions (set connections, get user name, etc.) With TNetwork5 you can get information about your current network drives, map or disconnect network drives under program control, get the name of your computer, its IP address, retrieve your user name, etc.

Description   Inheritance   Example   Properties   Methods
 
 Inheritance

Inherits from:  TObject5

Description   Inheritance   Example   Properties   Methods
 
 Example
 

      'net'Świ'*Create' 'TNetwork5'
      'net'Świ'GetUser'
ERIC LESCASSE

      'net'Świ'GetConnections'
 C:                
 D:                
 E:                
 F:                
 G:                
 H:                
 I:                
 J:                
 K:                
 L:                
 M:                
 N:                
 O:                
 P:                
 Q:                
 R:                
 S:                
 T: \\LATITUDEX1\C 
 U: \\DELL8500\C   
 V: \\DELL8200\C   
 W: \\DELL8300\C   
 X:                
 Y:                
 Z:                

      'net'Świ'AddConnection' '\\TPDIN3\SIMPA00' 'G:'
 G: \\TPDIN3\SIMPA00 

      'net'Świ'GetLastError'
 0   

      'net'Świ'GetConnections'
 C:                
 D:                
 E:                
 F:                
 G:                
 H:                
 I:                
 J:                
 K:                
 L:                
 M:                
 N:                
 O:                
 P:                
 Q:                
 R:                
 S:                
 T: \\LATITUDEX1\C 
 U: \\DELL8500\C   
 V: \\DELL8200\C   
 W: \\DELL8300\C   
 X:                
 Y:                
 Z:                

      'net'Świ'CancelConnection' 'G:'
2250
 
Description   Inheritance   Example   Properties   Methods
 
 Properties
 
class    
Description:  Return current object class 
Syntax:  class„'obj' Świ 'class' 
help    
Example: 
0 0˝'net' Świ '*Create' 'TNetwork5' 
'net' Świ 'GetUser' 
'net' Świ 'GetConnections' 
'net' Świ 'AddConnection' '\\TPDIN3\SIMPA00' 'G:' 
'net' Świ 'GetLastError' 
'net' Świ 'GetConnections' 
'net' Świ 'CancelConnection' 'G:' 
Description   Inheritance   Example   Properties   Methods
 
 Methods
 
AddConnection    
Description:  Establishes a new connection to a network resource 
connection„'obj' Świ 'AddConnection' 'resource' 'drive:' 
connection: nested vector [1]='drive:'  [2]='resource'  if successful 
Note: if there already is an active connection to this network resource 
the object returns the connection. If a drive is specified a connection 
is forced to this drive unless there is another resource already connected 
to this drive 
Example: 
      'net' Świ 'AddConnection' '\\TPDIN3\SIMPA99' 
or: 
      'net' Świ 'AddConnection' '\\TPDIN3\SIMPA99' 'J:' 
CancelConnection    
Description:  Cancels an existing connection to a network resource 
rc „'obj' Świ 'CancelConnection' resource 
rc „'obj' Świ 'CancelConnection' 'drive:' 
rc: return code(s) [0 if successful] 
Example: 
      'net' Świ 'CancelConnection' '\\TPDIN3\SIMPA99' 
      'net' Świ 'CancelConnection' 'J:' 
CheckConnection    
Description:  Indicates if we have access to a given file on the network 
Syntax:  'obj' Świ 'CheckConnection'networkFileName 
networkFileName:  a complete network file name using a \\ path name 
Result:  0=no access to the Network file; 1=access to the Network file 
Example: 
      'net' Świ 'CheckConnection' '\\TPDIN3\SIMPA01\SIMPA01.W3' 
FirstDrive    
Description:  Return the first available network drive letter not yet mapped or used (except A B and C) 
Syntax:  drive„'obj' Świ 'FirstDrive' {letter} 
letter:  (optional) smallest drive letter acceptable in result 
drive:  a drive letter 
Example: 
      'net' Świ 'FirstDrive' 
      'net' Świ 'FirstDrive' 'L' 
GetComputerName    
Description:  Returns the name of the current computer 
Syntax:  computername„'obj' Świ 'GetComputerName' 
computername:  a character string containing the current computer name 
Example: 
      'net' Świ 'GetComputerName' 
DELL8300 
GetConnections    
Description:  Returns current network connection(s) for specified drive 
connections„'obj' Świ 'GetConnections' 
connections„'obj' Świ 'GetConnections' 'drive:' 
connections„'GetConnections' 'resource' 
connections: 2-column nested matrix [;1]=drives:  [;2]=resources 
drive:  a letter 
resource:  a resource or part of a resource name (example: 'TPDIN' or '\\TPDIN3\SIMPA99') 
Examples: 
      'net' Świ 'GetConnections' 'H:' 
      'net' Świ 'GetConnections' '\\TPDIN3\SIMPA99' 
      'net' Świ 'GetConnections' 'TPDIN' 
      'net' Świ 'GetConnections' 
GetDriveTypes    
Description:  Return the drive types for the specified drives 
Syntax:  drivetypes„'obj' Świ 'GetDriveTypes' {drives} 
drives:  a letter (A thru Z) or a vector of drive letters (A thru Z) 
drivetypes:  a numeric vector, one value per specified drive 
             (1=not used 2=removable 3=fixed 4=remote 5=cdrom 6=ramdisk) 
Example: 
      'net' Świ 'GetDriveTypes' 
      'net' Świ 'GetDriveTypes' 'AELMN' 
GetHostName    
Description:  Returns the name of the current computer 
Syntax:  computername„'obj' Świ 'GetHostName' 
Example: 
      'net' Świ 'GetHostName' 
DELL8300 
GetIPAddress    
Description:  Returns the current computer IP address 
Syntax:  ipaddress„'obj' Świ 'GetIPAddress' 
ipaddress:  a character string in xxx.xxx.xxx.xxx format returning current computer IP address 
Example: 
      'net' Świ 'GetHostName' 
DELL8300 
GetLastError    
Description:  Return last network error messages as a 3-element nested vector 
Syntax:  'obj' Świ 'GetLastError' 
Example: 
      'net' Świ 'GetLastError' 
GetLogicalDrives    
Description:  Return all the logical drive strings for used and mapped drives 
Syntax:  drives„'obj' Świ 'GetLogicalDrives' 
drives:  a nested vector of drives in the form 'A:\' 'M:\' ... 
Example: 
      'net' Świ 'GetLogicalDrives' 
GetUser    
Description:  Return current (network) user name 
Syntax:  username„'obj' Świ 'GetUser' 
Example: 
      'net' Świ 'GetUser' 
MapNetworkDrive    
Description:  Maps a new network drive and give access to a user 
Syntax:  'net' Świ 'MapNetworkDrive'drive unc user password 
drive:  a drive letter (D to Z) 
unc:  a network resource (example:  \\TPPRDSFI5\DISPO) 
user:  a user name (example:  ELESCASS) 
password:  the user name logon password 
Example: 
      'net' Świ 'MapNetworkDrive' 'R' '\\tpprdsfi5\dispo' 'elescass' 'mypw' 
New     Description: Create a new instance of TNetwork5
Example:
      'obj' Świ '*Create' 'TNetwork5'

Description   Inheritance   Example   Properties   Methods
 
 This entire Web site has been dynamically generated by APL+Win Objects™ 6.0
 For all questions contact:  info@lescasse.com
 Copyright © 2003-2005 Lescasse Consulting. All rights reserved.