Description Usage Arguments Value Author(s) See Also Examples
Set a property value in a block. The properties of a block can be configured from the block menu (configure).
1 | spnSetProperty(Block, Prop, Value)
|
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. |
spnSetProperty
returns TRUE if successful, FALSE - otherwise.
Teodor Krastev
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.