another basic variable

March 13, 2009 at 09:56:39
Specs: win xp 5.1.2600, 3mhz/2 gig
Hi, I have a Microstation Basic macro problem.

I need to create incrementing variables on the end of 'point'. I am aware that point is mbepoint and count is a double but does anyone know how to increment an mbepoint? (I dont have all the code with me now to post so below is a simple example. If you need the rest let me know and I will post it on monday)
Thank you

dim point as mbepoint
sub main
dim count as double
count = count + 1
<<<here is my code to get a datapoint>>>
point(count)=datapoint ******(this is where it always crashes)
goto begin
end sub

See More: another basic variable

Report •

March 14, 2009 at 00:19:55
which part do you declare point as array?

is var datapoint also declared as mbepoint datatype?

Report •

March 16, 2009 at 02:18:32
Hi Reno, below is my code.
I hope this answers your question: datapoint is mbepoint as well. I dont understand what you mean by array. I am still new at basic. Please see the comment '***(in brackets)*** below to see what I need. Thank you

dim accept$
sub main
dim acceptpoint as mbepoint
dim startpoint as mbepoint
dim point as mbepoint
dim count#

count = count+1
MbeGetInput MBE_DataPointInput, MBE_ResetInput

'If user resets, exit the loop.
if mbestate.inputtype = MBE_Resetinput then
goto continue
end if

'If user accepts, create datapoint and loop.
if mbestate.inputtype = mbe_datapointinput then
status = mbestate.getinputdatapoint (acceptpoint)
point = acceptpoint '***(this is where the "point" should increment with "count" value)***

goto begin
'mbesenddatapoint point

mbesendkeyin "choose element"

end if
end sub

Report •

March 17, 2009 at 09:48:08
Hi all... please, any assistance will be appreciated.
Thank you.

Report •

Related Solutions

March 19, 2009 at 05:14:14
can anyone do this in visual basic?

Report •

Ask Question