Hi all,

REALbasic 2007r1 for Mac OS X 10.4.8


the idea is:

const WindowRect = 10,10,400,200

but the above gives "Syntax error".

I thank at:

const WindowRect = New MemoryBlock(7)

but same problem with... How do I assign the values ?


so until a better solution, I will use:


Dim aRect As MemoryBlock

aRect = New MemoryBlock(7)

aRect.Int32Value(0) =  10
aRect.Int32Value(2) =  10
aRect.Int32Value(4) = 400
aRect.Int32Value(6) = 200


or eventually:

// a. Declaration
Dim aRect As MemoryBlock = New MemoryBlock(7)


// b. Filling
aRect.Int32Value(0) =  10
aRect.Int32Value(2) =  10
aRect.Int32Value(4) = 400
aRect.Int32Value(6) = 200


TIA,

Emile

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to