10.3. find_group()
find_group()
Returns the group index for the specified group name
Remarks
If no group with the specified name is found, this command will return the value zero. This can
cause problems as this is the group index of the first group, so be careful when using this com-
mand.
Examples
on note
disallow_group(find_group("Accordion"))
end on
A simple, yet useful script
See Also
allow_group()
disallow_group
group_name()
Group Commands
72
KSP Reference Manual
10.4. get_purge_state()
get_purge_state( )
Returns the purge state of the specified group:
0: The group is purged.
1: The group is not purged, i.e. the samples are loaded.
The index number of the group that should be checked.
Examples
on init
declare ui_button $purge
declare ui_button $checkpurge
set_text ($purge,"Purge 1st Group")
set_text ($checkpurge,"Check purge status")
end on
on ui_control ($purge)
purge_group(0,abs($purge-1))
end on
on ui_control ($checkpurge)
if (get_purge_state(0) = 0)
message(“Group is purged.”)
else
message(“Group is not purged.”)
end if
end on
A simple purge check
Do'stlaringiz bilan baham: |