Article View: alt.lang.basic
Article #625Re: [QBasic] Return a Array from a Function
From: Lou Zher
Date: Thu, 07 Dec 2000 00:00
Date: Thu, 07 Dec 2000 00:00
43 lines
2457 bytes
2457 bytes
> Greetings from the only dessert of Europe! > Francisco Segura > Almeria - Spain A "dessert" is the sweet dish served after a meal, and technically, most of Iceland is considered a desert, as in an arid region of sparse vegetation. I did not know that region of Spain was considered a desert. That's interesting. -- -LZ [ Do NOT try to e-mail me! ] <take_it_out_infores@airtel.net> wrote in message news:3EBX5.1210$rZ6.32389@m2newsread.uni2.es... > >I have a function and i want the function to return an array... > >thankyou very much... i love you all :.) > > Simply use a variant variable. > Dim var as variant > var = MyFunction > > Function MyFunction() as variant > ... create an array t() > > return t() > > or > Redim var ... > ' Call your sub > MySub(var) > > Sub MySub( byref tarray as variant) > (any changes on tarray will be made in "var") > return > > > ------------------------------------------------------------ > Greetings from the only dessert of Europe! > Francisco Segura > Almeria - Spain >
Technical Details
Message-ID:
<1nIX5.55249$15.11808366@news1.rdc1.az.home.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3a16b7ae$0$5188@SSP1NO25.highway.telekom.at> <3EBX5.1210$rZ6.32389@m2newsread.uni2.es>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109a70,f959de4259a83187 X-Google-Attributes: gid109a70,public X-Google-Thread: 112458,f959de4259a83187 X-Google-Attributes: gid112458,public X-Google-Thread: 1164ba,f959de4259a83187 X-Google-Attributes: gid1164ba,public X-Google-Thread: 10feaf,f959de4259a83187 X-Google-Attributes: gid10feaf,public X-Google-Thread: f645d,f959de4259a83187 X-Google-Attributes: gidf645d,public X-Google-Thread: 10ab99,f959de4259a83187 X-Google-Attributes: gid10ab99,public X-Google-Thread: f7aba,f959de4259a83187 X-Google-Attributes: gidf7aba,public From: "Lou Zher" <abuse@127.0.0.1> Subject: Re: [QBasic] Return a Array from a Function Date: 2000/12/07 Message-ID: <1nIX5.55249$15.11808366@news1.rdc1.az.home.com> X-Deja-AN: 702093953 References: <3a16b7ae$0$5188@SSP1NO25.highway.telekom.at> <3EBX5.1210$rZ6.32389@m2newsread.uni2.es> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.az.home.com 976179773 24.15.49.68 (Thu, 07 Dec 2000 01:02:53 PST) Organization: Excite@Home - The Leader in Broadband http://home.com/faster X-MSMail-Priority: Normal NNTP-Posting-Date: Thu, 07 Dec 2000 01:02:53 PST Newsgroups: alt.lang.basic,comp.lang.basic,comp.lang.basic.visual,fido.ger.basic,microsoft.public.basic,relcom.comp.lang.basic,z-netz.sprachen.basic