Creating variables programmatically with pre-defined name

85 views
Skip to first unread message

Francois Thibault

unread,
Mar 20, 2018, 3:09:05 PM3/20/18
to Blockly
Hi,

I have an application where I'd like to create blockly variables programmatically but I already have the name of the variable to create (from another part of my application). Hence I do not want to have a popup to have the user specify the variable name. It seems unavoidable when using Blockly.Variables.createVariable(). Any way around this?

Thanks,
FT

Rachel Fenichel

unread,
Mar 20, 2018, 3:55:29 PM3/20/18
to Blockly

Francois Thibault

unread,
Mar 21, 2018, 12:03:50 PM3/21/18
to Blockly
Indeed does what I need. Thanks!
Reply all
Reply to author
Forward
0 new messages