Jump to content

Futurebasic/Language/Reference/fbgetsystemname$

From Wikibooks, open books for an open world

FBGetSystemNames$ function

[edit | edit source]

FBGetSystemNames$

[edit | edit source]

Function

[edit | edit source]

✔ Appearance ✔ Standard ✔ Console

Syntax

[edit | edit source]

name$ = Fn FBGetSystemName$(nameType)

Revised

[edit | edit source]

April, 2003 (Release 8)

Description

[edit | edit source]

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

[edit | edit source]
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