< Futurebasic < Language < Reference

FBGetSystemNames$ function


FBGetSystemNames$

Function

✔ Appearance ✔ Standard ✔ Console

Syntax

name$ = Fn FBGetSystemName$(nameType)

Revised

April, 2003 (Release 8)

Description

This function returns the computer name or the user name according to the nameType parameter. nameType is one of the following constants: _FBComputerName, _FBLongUserName or _FBShortUserName.

To make this routine available to your program, you must include the header file "Util_ComputerNames.Incl".

Example

Include "Util_ComputerNames.Incl"
Print "Computer Name:";;¬
   Fn FBGetSystemName$ (_FBComputerName);""""
   Print  "Long  User Name: """;¬
   Fn FBGetSystemName$ (_FBLongUserName);""""
   Print  "Short User Name: """;¬
   Fn FBGetSystemName$ (_FBShortUserName);""""

Do
  HandleEvents
Until 0

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.