New topic: Can I define Types in RB ?
<http://forums.realsoftware.com/viewtopic.php?t=45655> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message TomazVDaSilva Post subject: Can I define Types in RB ?Posted: Sat Oct 20, 2012 3:59 pm Joined: Thu Dec 29, 2011 6:46 pm Posts: 188 Location: Edmonton, AB, Canada How do I define Types in Realbasic ? Should I use "structure"? Does anyone know how to convert this code below to RB ? Public Bak(3) As Sprite, BakD(3) As bk Type bk r As Long v As Long n As Long End Type Sub bkA(i As Long, x As Long, y As Long) Dim n As Long n = getPt If n = ptMax Then Exit Sub With pt(n) v = True t = 20 x = x y = y p1 = 0 r = BakD(i).r p2 = BakD(i).v p3 = BakD(i).n p4 = i End With End Sub _________________ Regards, TomazVDaSilva Clean Code: Robert C. Martin It is not the language that makes programs appear simple. It is the programmer that make the language appear simple! Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
