spnSetProperty: Set a property value in a block

Description Usage Arguments Value Author(s) See Also Examples

Description

Set a property value in a block. The properties of a block can be configured from the block menu (configure).

Usage

1
spnSetProperty(Block, Prop, Value)

Arguments

Block

- the name(character string) of a block.

Prop

- the name(character string) of a property.

Value

- the value of the property, the type depends of the type of property in the block.

Value

spnSetProperty returns TRUE if successful, FALSE - otherwise.

Author(s)

Teodor Krastev

See Also

spnGetProperty

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# Initialization of Spectrino
spnNew() 

# generate test set
spnOpenGroupOfBlocks("<test>")

# set a property
spnSetProperty("test1","objective.0",3.58)

# get a property
spnGetProperty("test1","objective.0") 

# Release of Spectrino
#spnFree(TRUE)

spectrino documentation built on June 4, 2019, 1:02 a.m.