Skip to content

Latest commit

 

History

History
70 lines (58 loc) · 1.96 KB

File metadata and controls

70 lines (58 loc) · 1.96 KB

Rpstr_SetValueBool

Description

Set a boolean value from the VectorScript value repository.

PROCEDURE Rpstr_SetValueBool(
				name  : STRING;
				value : BOOLEAN);
def vs.Rpstr_SetValueBool(name, value):
    return None

Parameters

Name Type Description
name STRING The name of the value.
value BOOLEAN Set a value associated with the name in the VectorScript value repository.

Examples

BEGIN
	Rpstr_SetValueBool('IsRegistered',TRUE);
	{This tells VW to let the object decide what goes onto the Object Info palette.}
	result:= SetObjPropVS(kObjXPropHasUIOverride, TRUE);
	result := SetObjPropVS(12, TRUE); {kObjXHasCustomWidgetVisibilities}
	result := SetObjPropVS (kObjXHasCustomWidgetVisibilities,TRUE);	{Is this needed to use "SetParameterVisibility()" }

BEGIN
	Rpstr_SetValueBool('IsRegistered',TRUE);
	{This tells VW to let the object decide what goes onto the Object Info palette.}
	result:= SetObjPropVS(kObjXPropHasUIOverride, TRUE);
	result := SetObjPropVS(12, TRUE); {kObjXHasCustomWidgetVisibilities}

BEGIN
	AlrtDialog('#1 You have been using AutpPlot Tools for longer than 3 months.  Please register.  See the first AutoPlot menu item');
	Rpstr_SetValueBool('IsRegistered',FALSE);
END
import vs

# Set a boolean value from the VectorScript value repository.
name = 'Example'
value = True

vs.Rpstr_SetValueBool(name, value)

See Also

VS Functions: Rpstr_RemoveValues | Rpstr_RemoveValue | Rpstr_GetValueBool | Rpstr_SetValueBool | Rpstr_GetValueInt | Rpstr_SetValueInt | Rpstr_GetValueReal | Rpstr_SetValueReal | Rpstr_GetValueStr | Rpstr_SetValueStr

Version

Availability: from Vectorworks 2012

Category