Discussions

SmileBASIC Community

xX☆Boy64XxUltimateArceus

11/10/2016 4:33 PM ·Spoilers

Open Closed

How do you access an array from a different slot?

How do you edit or print a variable in a array from a different slot then the slot the array was created in?

Advertisement

Comment

This post has no comments.

  • Let's assume the array is in slot 1 and is named ARRAY, and it's 1D. We use the functional VAR() keyword to grab a reference to the variable, using its name string. PRINT VAR("1:ARRAY")[0] Note that the index brackets come after the VAR function. Assignment works like this too: VAR("1:ARRAY")[0]=10 Keep in mind that this may not work as intended depending on the way everything is set up.

    Yeahs2
    Played
  • just eat it

    Yeahs1

Add a Comment

You must sign in to post a comment.

Sign in using a Nintendo Network ID to connect to users around the world by writing posts and comments and by giving Yeahs to other people's posts. You can create a Nintendo Network ID using your Wii U console or your system in the Nintendo 3DS family.

Use of Miiverse Details about Miiverse

Report Violation to Miiverse Administrators

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Post ID: 3DB-NBL7-EJ9-9E2L-GD7-T4ZW

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: