bigal_scorpio
Active Member
Hi to all,
I am still learning Pic Basic Pro and have come up with a problem in understanding Arrays!
From the manual I understand how to define the Arrays name and size eg. sharks VAR BYTE [10] gives an Array with 10 elements and I think I understand how to access the elements. BUT what I am baffled about is the method of loading the data I want into the array?
I mean to say, continuing the manuals shark theme, if I wanted the array to consist of tiger, great white, lemon, nurse etc, what is the actual syntax I would use to make the array and where would this line/s be placed? IE inside the main, before main or after main?
Any example would be most welcome.
Thanks for looking...........Al
I am still learning Pic Basic Pro and have come up with a problem in understanding Arrays!
From the manual I understand how to define the Arrays name and size eg. sharks VAR BYTE [10] gives an Array with 10 elements and I think I understand how to access the elements. BUT what I am baffled about is the method of loading the data I want into the array?
I mean to say, continuing the manuals shark theme, if I wanted the array to consist of tiger, great white, lemon, nurse etc, what is the actual syntax I would use to make the array and where would this line/s be placed? IE inside the main, before main or after main?
Any example would be most welcome.
Thanks for looking...........Al