Computing.Net > Forums > Programming > dimension mbepoints with integer

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

dimension mbepoints with integer

Reply to Message Icon

Name: lee123abc
Date: March 23, 2009 at 06:26:52 Pacific
OS: win xp 5.1.2600
CPU/Ram: 3mhz/2 gig
Product: Dell / PRECISION
Subcategory: General
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: lee123abc
Date: March 23, 2009 at 12:55:47 Pacific
Reply:

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


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: dimension mbepoints with integer

No addition in VB-4 www.computing.net/answers/programming/no-addition-in-vb4/12800.html

Java Guru www.computing.net/answers/programming/java-guru/4288.html

programming a cpu temp monitor www.computing.net/answers/programming/programming-a-cpu-temp-monitor/12490.html