-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read a multi dimension array #23
Comments
Try If you want to read along with the second dimension, try |
Hi, I'm also having trouble reading from and writing to a multidimensional array. I have a DINT array as such: dintArray2[10][10]. I am able to read all 100 array elements at once by However that's not what I want. I need to be able to write back a single element in a multidimensional array. For a one dimensional array it's as easy as |
Unfortunately the doesn't work for multidimensional array like Have you solved it yet? |
If you want to read single element, you have to use If you want to read 5 elements, you have to use And also remember that array index start from 0, so index 1 in fact the second element. Best Regards, |
You can't just print CIPData because it's a structured data. You have to use access methods to "extract" it (ex. getNumber, getString...). This is my util class to deal with Number/Boolean/String CIPDatas and compatible with multidimensional array, it's writen in Groovy but very similar with Java. |
Hi,
How i can read, example test[0,1] ?
The text was updated successfully, but these errors were encountered: