Use of the NETWORK() Function in FoxPro 2.5

Last reviewed: April 29, 1996
Article ID: Q105142
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 3.0
  • Microsoft FoxPro for Windows, versions 2.5x, 2.6x
  • Microsoft FoxPro for MS-DOS, versions 2.5x, 2.6x

SUMMARY

In FoxPro version 2.0, the NETWORK() function is used to determine if the LAN version of FoxPro is being run. It returns .T. if FOXPROL.EXE or FOXPROLX.EXE is being run. This function has no use in FoxPro version 2.5 because every version of FoxPro 2.5 and later is a LAN version.

MORE INFORMATION

The NETWORK() function still works in FoxPro 2.5 for compatibility reasons, but it always returns .T. The "Language Reference" manual does not mention this function nor does the online Help file.

NOTE: Pages D16-18 (MS-DOS) and page D19-18 (Windows) of the FoxPro 2.5 "Developer's Guide" describe the NETWORK() function. These pages incorrectly state that NETWORK() "returns .T. if you are using FoxPro on a network." Instead, they should state that NETWORK() "returns .T. if you are running the LAN version of FoxPro." The NETWORK() function does NOT return whether the network is active or inactive.


Additional reference words: FoxDos FoxWin VFoxWin 2.50 2.50a 2.50b 2.60
2.60a 3.00 net docerr
KBCategory: kbprg kbdocerr
KBSubcategory: FxnetworkGeneral


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 29, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.