Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #1454
| From | Deanna Earley <dee.earley@icode.co.uk> |
|---|---|
| Newsgroups | comp.lang.basic.visual.misc |
| Subject | Re: download an image using inet1.execute instead of .open |
| Date | 2012-07-26 10:21 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <jur26s$l2c$1@speranza.aioe.org> (permalink) |
| References | <a383d3c9-ca04-4207-ac7f-186b7ea18976@googlegroups.com> <ju8jl4$ptl$1@speranza.aioe.org> <jup7qi$n3s$1@online.de> |
On 25/07/2012 17:44, Theo Tress wrote: >> VB6 doesn't allow you to just append to an array. > > But having an array A(100) you can do a ReDim Preserve A(300) to obtain > a larger array and specify A(100) as base address in a subroutine call Correct. > instead of A() which would implicitly specify A(0) Incorrect. A or A() passes the array itself. A(0) passes the first item (whatever type it is) A(100) Passes the 101th item (whatever type it is) IF you're calling a Win32 API function (like CopyMemory) that expects a pointer, you can pass VarPtr(a(XX)) (or a(XX) by ref) and they can work out the rest from there, but anything that expects or returns "an array" needs the full array, unless it also accepts an offset as a separate parameter. -- Deanna Earley (dee.earley@icode.co.uk) i-Catcher Development Team http://www.icode.co.uk/icatcher/ iCode Systems (Replies direct to my email address will be ignored. Please reply to the group.)
Back to comp.lang.basic.visual.misc | Previous | Next — Previous in thread | Find similar | Unroll thread
download an image using inet1.execute instead of .open David <rataxes@post.com> - 2012-07-18 15:13 -0700
Re: download an image using inet1.execute instead of .open Deanna Earley <dee.earley@icode.co.uk> - 2012-07-19 10:22 +0100
Re: download an image using inet1.execute instead of .open "Theo Tress" <rbk@online.de> - 2012-07-25 18:44 +0200
Re: download an image using inet1.execute instead of .open Deanna Earley <dee.earley@icode.co.uk> - 2012-07-26 10:21 +0100
csiph-web