Futurebasic/Language/Reference/fbgetsystemname$

FBGetSystemNames$ functionEdit

FBGetSystemNames$Edit

FunctionEdit

✔ Appearance ✔ Standard ✔ Console

SyntaxEdit

name$ = Fn FBGetSystemName$(nameType)

RevisedEdit

April, 2003 (Release 8)

DescriptionEdit

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".

ExampleEdit

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