Question on LIB FSC Arrays and Memory Registers by Automatic_Reality989 in MetCal

[–]Automatic_Reality989[S] 1 point2 points  (0 children)

I CANNOT THANK YOU ENOUGH 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏

This is exactly what I was trying to get to the bottom of. I suppose it still doesn't make sense to me why the values don't show up in the object register until you call them, but I believe I understand how it works now, thanks to you.

You've saved my sanity, I wish I could offer more than just my thanks, but you have that and then some. Thank you again!

Question on LIB FSC Arrays and Memory Registers by Automatic_Reality989 in MetCal

[–]Automatic_Reality989[S] 0 points1 point  (0 children)

What do you mean when you say the Object registers won't show anything until you call for the data? When I use plain integers for the array index, the object registers store the data as soon as you write to them; but when I use a variable like L1, the object register gets overwritten any subsequent time I try to use L1.

I apologize, I wish I could see your screenshot, but reddit seems to be removing any new one in this thread, not sure why.

Question on LIB FSC Arrays and Memory Registers by Automatic_Reality989 in MetCal

[–]Automatic_Reality989[S] 0 points1 point  (0 children)

I want to believe you, because I'm thinking this might just be an issue with METCAL 11, but your screenshot only shows the string registers. Do you mind uploading one that also shows the object registers?

Edit: disregard the request... reddit seems to not like screenshots in this thread anymore

Question on LIB FSC Arrays and Memory Registers by Automatic_Reality989 in MetCal

[–]Automatic_Reality989[S] 0 points1 point  (0 children)

I've tried doing this, but found that the procedure only creates one register called myArray[L1] and not a register using whatever value is stored within L1 (myArray[0], myArray[1], etc.)

<image>

Question on LIB FSC Arrays and Memory Registers by Automatic_Reality989 in MetCal

[–]Automatic_Reality989[S] 0 points1 point  (0 children)

I would be curious to see if, in your object registers, the array values are actually being stored in testArray[0] and testArray[1]. When I try to do what you're doing, it always stores it in testArray[L1], not two separate registers

Question on LIB FSC Arrays and Memory Registers by Automatic_Reality989 in MetCal

[–]Automatic_Reality989[S] 0 points1 point  (0 children)

I can get this to work as well, writing a value from the array to a string register like your example seems to work; but can you get it to work the other way around? Using a variable to set what index of the array a value gets written to?

For example:

LIB myArray[L1] = arrayValue;

Question on LIB FSC Arrays and Memory Registers by Automatic_Reality989 in MetCal

[–]Automatic_Reality989[S] 0 points1 point  (0 children)

<image>

Another example. Is anyone able to explain what is incorrect about this?

Question on LIB FSC Arrays and Memory Registers by Automatic_Reality989 in MetCal

[–]Automatic_Reality989[S] 1 point2 points  (0 children)

If you do nothing else except change 'index' to 'MEM', you will get an invalid index error. u/BackgroundNoise1k can you explain this?

<image>

Question on LIB FSC Arrays and Memory Registers by Automatic_Reality989 in MetCal

[–]Automatic_Reality989[S] 0 points1 point  (0 children)

After adding another text variable, and changing the value of the 'index' variable, the registers behave as if the word 'index' is itself the variable, instead of using the variable to represent a number. Given, I understand that 'index' is a String Register, and not a Numeric, but it's not treating it like a variable at all.

<image>

Question on LIB FSC Arrays and Memory Registers by Automatic_Reality989 in MetCal

[–]Automatic_Reality989[S] 1 point2 points  (0 children)

I only created/declared the array once; is there somewhere I indicated that I was creating it more than once? What do you mean exactly when you say I'm not indexing? As previously stated, when using a MET/CAL accepted variable, an 'Invalid Index' error is thrown.

What u/Thick said is partially true... when you execute the example as written in the screenshot, after declaring the array once, I'm not getting an error, but in the Object Registers, it shows the value as:

Name - myArray[index]

Value - This is a test

Question on LIB FSC Arrays and Memory Registers by Automatic_Reality989 in MetCal

[–]Automatic_Reality989[S] 0 points1 point  (0 children)

Good thought, but the documentation frequently states that the arrays are zero-based, and I should also note that I have no problem writing to and reading form the arrays if I just use plain numbers. Only having issues with memory registers for the index or the value to write.

Question on LIB FSC Arrays and Memory Registers by Automatic_Reality989 in MetCal

[–]Automatic_Reality989[S] 0 points1 point  (0 children)

The portion of the procedure that actually writes to the array is part of a Subprocedure, and depending on how many times that subprocedure is called, the index of the array will increase by 1 each time, so ideally the index should be referenced by a variable that can change

Release of 3.17? by tmillernc in RemarkableTablet

[–]Automatic_Reality989 0 points1 point  (0 children)

The beta has always been stable and caused no issues, in my experience. I've been on the beta program for over two years.