PDA

View Full Version : Array[750]



amgen
- 31st July 2011, 19:49
HI,
The manual says long arrays for 18F's are ok,
but my index does not seem to go past 255.



RCVdata var byte [750]
InDX var WORD 'index variable

for ax=1 to indx 'SEND ALL IN MEM BY INDEX
DAT = RCVDATA[AX]
hserout[DAT]
next ax
HSEROUT [", INDEX COUNT=" , DEC INDX ,10,13]


do I have to make seperate arrays if > 255 in PBP.
------------------------------------------------------------

5811hyperterm
-------------------------------------------------------------
thanks
don

Darrel Taylor
- 31st July 2011, 19:54
Don,

What size is the ax variable?
It needs to be a WORD too.

amgen
- 31st July 2011, 20:22
Thanks Mr T, certainly works fine now.
Its funny how you look at this stuff some times and miss the obvious.
Allow me to give you another compliment for DT_INT's. Managing 1 int isn't too bad, but using 2 or more ints start getting difficult.
Lastly, when I was on your INTs web site, I noticed the neat LCD looking timer you made a few years ago. Learning HTML I tried to paste the script into html doc, but it would'nt run like some pasted scripts run. Not infringing on your work, only for learning purposes, can scrips be locked somehow ?

thanks,
don

Darrel Taylor
- 1st August 2011, 01:33
I don't know any way to lock javascript.
But if you make it complicated enough, most people can't use it. :)

This might help...
I've copied the files to a different server ... there's only 3 files.
http://dt-ints.com/v-lcd/

Look at the V-LCD_Disp.htm file first.
It shows how to put multiple LCD's on the same page.