Hitachi

JP1 Version 11 JP1/Script Description and Reference (For Windows Systems)


9.4.4 IsEmptyGroup (check for shortcuts)

Purpose

Checks whether shortcuts exist in a program group and returns True or False.

Syntax
IsEmptyGroup(GroupName [, RootType])
Arguments
GroupName

Specify the program group name as a character string or as a variable that stores this value.

RootType

Specify the program group type with one of the values shown in the following table:

Value

Meaning

Lcl_Program

Program (common program group)

Cur_Program

Program (user-specific program group)

This value is optional. If you omit this value, Cur_Program is assumed.

Description

The IsEmptyGroup command checks whether a specified program group contains any shortcuts. The command returns True if a shortcut exists, or False if not.

False is always returned if there is no such program group.

Example
' Delete the program group "Alphabet" on Windows 7
' if it contains no shortcuts.
If  _OS_ = "WIN_NT6.1"  Then
  If  IsEmptyGroup("Alphabet")  Then
    DeleteGroup("Alphabet")
  End If
End If
JP1/Script version

Supported from JP1/Script 05-20.