microsoft / pxt-microbit

A Blocks / JavaScript code editor for the micro:bit built on Microsoft MakeCode
https://makecode.microbit.org
Other
727 stars 638 forks source link

How to create a string variable is not obvious, and not explained in the docs #6020

Open martinwork opened 15 hours ago

martinwork commented 15 hours ago

Describe the bug Arising from support ticket https://support.microbit.org/helpdesk/tickets/84197 (private)

When creating a new variable (by clicking Variables then Make a Variable...), no option for string is presented. Entering text in the set variable to block or including inverted commas does not work.

The docs pages for Variable, Assign and Number do not explain how to create a set variable to block https://makecode.microbit.org/blocks/variables https://makecode.microbit.org/blocks/variables/assign https://makecode.microbit.org/types/number Image The breadcrumbs and pictures suggest the Assign page is about blocks, but the explanation is about using the equals sign. The Assign page has a string example but doesn't point out where to find a string block

How to create a variable is explained on the String page, but it doesn't seem quite right and doesn't say where to find a string block. https://makecode.microbit.org/types/string Image

The "var" page has a step-by-step which doesn't seem right, and it mentions "Local Variables" and "Var statement" https://makecode.microbit.org/blocks/variables/var Image Image