Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Re: Variable type change

13 views
Skip to first unread message

Mark Murawski

unread,
Jan 13, 2025, 10:27:26 AMJan 13
to blo...@googlegroups.com
Hi Adrian,

If you look at the documentation on variables, it tells you how to redefined them.

That's how I did it. I set the type of variables in the setter to 'Variable', and then had to redefine comparison and a bunch of other built ins so they can take type 'Variable'.

https://developers.google.com/blockly/guides/create-custom-blocks/variables


On 1/5/25 11:10, Adrian M wrote:
There is no function to change the type of a variable? How can I go about doing this in my code? I've spent hours looking for a solution.

Thank you
--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/blockly/c7d8725a-dbe8-4fe1-a8da-4dcde463f612n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages