April 19, 2024, 10:55:17 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Way to index into variables

Started by billhsln, June 22, 2015, 11:54:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

billhsln

June 22, 2015, 11:54:29 PM Last Edit: June 23, 2015, 12:09:52 AM by billhsln
You must create the fields in order and in one group, see a0-a9 or a9-a0 which are defined as INT, which has a length of 4.  That way they are in memory sequentially.  This gives you a way to reference each field individually or do a pseudo index to reference or update the fields.  I am not sure why it creates them in memory in the reverse order, but that is how it works on my PC running Win 8.1 Pro.  This might make some ones program a little easier to work on or at least give you a few more options on how to access and modify your fields.

Bill
When all else fails, get a bigger hammer.