Is there a way to import code?

pwiecekpwiecek Posts: 14
Is there a way to export blocks and import them to another program?

Comments

  • 4 Comments sorted by Date Added Votes
  • If you mean source code then you can copy and paste the code from one program to another. If you mean compiled (binary) code then no, not in a general sense, although precompiled modules can be linked with a program.
    In science there is no authority. There is only experiment.
    Life is unpredictable. Eat dessert first.
  • @pwiecek - In the BlocklyProp workspace - see the drop-down menu at the upper righthand corner (next to the Save button). When you click it - it will show these options.

    DropDown.JPG

    From there, you can download SimpleIDE files - in C, or BlocklyProp block files.

    In new or other programs, you can open the same menu, and choose the Upload blocks, the following dialog will appear.

    Upload.JPG

    Choose the block file you wish to upload and you can replace all the code in your current program or append the blocks to your code.

    This feature is documented here - https://learn.parallax.com/tutorials/language/blocklyprop/getting-started-blocklyprop/more-blocklyprop-features along with lots of other great stuff.
    303 x 392 - 24K
    618 x 217 - 21K
    Whit+

    "We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney
  • pwiecekpwiecek Posts: 14
    edited February 14 Vote Up0Vote Down
    Beauty!
    Thanks Whit.
  • WhitWhit Posts: 3,748
    Glad I could help!
    Whit+

    "We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney
Sign In or Register to comment.