FutureBasic Logo

<<    Index    >> FutureBasic 5

FBGetSystemName$   function



Syntax:
name$ = fn FBGetSystemName$(nameType)

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