dimension mbepoints with integer

Dell PRECISION
March 23, 2009 at 06:26:52
Specs: win xp 5.1.2600, 3mhz/2 gig
can this be done guys? I need to dimension an mbepoint (point) with an integer (counter) on the end.

sub main

dim datapoint as mbepoint
dim counter as integer
dim point(counter) as mbepoint
dim lastcount as integer
counter=0

begin_loop:
counter=counter+1
mbegetinput mbe_datapointinput, MBE_ResetInput

if mbestate.inputtype = mbe_resetinput then
goto end_loop
end if

if mbestate.inputtype = mbe_datapointinput then
point(counter)=datapoint
end if

goto begin_loop

end_loop:
lastcount=counter

mbesendreset
mbesendkeyin "choose element"

end sub


See More: dimension mbepoints with integer

Report •


#1
March 23, 2009 at 12:55:47
ok incase anyone ever needs the info... what I should have done was dim the point as an array...

dim point(1 to 99999) as mbepoint

then use a simple loop to create a counter....

loop1:
count = count + 1
point(count)= etc etc etc...

Cheers


Report •
Related Solutions


Ask Question