can setxdata in multiple array format?
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
can setxdata in multiple array format?

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
ktssi



Joined: 14 Jul 2005
Posts: 6

Posted: Mon Aug 22, 2005 2:06 am    Post subject: can setxdata in multiple array format? Reply with quote

Dear All:
it is the object.sexdata can be use for multiple array. my code like this

Public Type GroupInfo
minp(0 To 2) As Double
maxp(0 To 2) As Double
Centerp(0 To 2) As Double
GpData As String
End Type

Public MyGroup(0 To 50) As GroupInfo

ss = 102
qq = 2
pp = 0
rr = 2

Do While qq < 50
Do While pp < 10
GpID(rr) = ss
MyGroup(rr).minp(0) = Temp1_X(0)
MyGroup(rr).minp(1) = Temp1_Y(1)
MyGroup(rr).minp(1) = Temp2_X(0)
MyGroup(rr).minp(1) = Temp2_Y(1)
MyGroup(rr).Centerp(0) = Center_point(0)
MyGroup(rr).Centerp(0) = Center_point(1)
pp = pp + 1
ss = ss + 1
rr = rr + 1
Loop
qq = qq + 1
Loop

but it return a error, so any solution for this?thx

Back to top
View user's profile Send private message
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB