Jump to content
  • 0

Inserting values into array


Moooooon-Aisha

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  116
  • Reputation:   18
  • Joined:  09/08/17
  • Last Seen:  

Any ideas as to how to insert data into an array?

I assumed it would be like this

setd ".@item_list"+.@c+"$["+.@i+"]",getd(".@master_list"+.@c+"$["+.@i+"]");

however, i find it that it would record the wrong data

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   596
  • Joined:  11/25/11
  • Last Seen:  

The code looks right, I mean:

setd ".@item_list" + .@c + "$[" + .@i + "]", getd(".@master_list" + .@c + "$[" + .@i + "]");

Check if the index you're seeking is exactly the same on both cases.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  116
  • Reputation:   18
  • Joined:  09/08/17
  • Last Seen:  

Seems like there's an issue when using something like .@i + 1 on the formula. Thank you for the response.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...