I've been using Delphi a long time, but never used Dynamic Arrays. If I declare "var data:array of byte" in the parameters list of a procedure, I get an "Incompatible types" error on the statement "SetLength(data, length)". (The othe passed parameters tell how big the array needs to be - I'm assuming SetLength should be used before writing to the array)
If I declare "data" as local to the procedure and don't pass it, it is OK. If I declare "data" as global to the unit, and don't pass it, it is OK. I would prefer to pass it as a parameter so I could make use of the results by calling my procedure from various other procedures, each with a locally declared dynamic array of bytes. The reference counting of dynamic arrays should keep this straight, right? (using D7 pro, XP pro) ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/