Article View: alt.lang.basic
Article #624Re: [QBasic] Return a Array from a Function
From: take_it_out_infores
Date: Thu, 07 Dec 2000 01:23
Date: Thu, 07 Dec 2000 01:23
26 lines
2041 bytes
2041 bytes
>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:
<3EBX5.1210$rZ6.32389@m2newsread.uni2.es>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!novia!newsfeed.skycache.com!Cidera!newsfeed.comtenidos.com!m2newsfeed.uni2.es!m2newsread.uni2.es.POSTED!not-for-mailReferences:
<3a16b7ae$0$5188@SSP1NO25.highway.telekom.at>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7aba,f959de4259a83187 X-Google-Attributes: gidf7aba,public X-Google-Thread: 10ab99,f959de4259a83187 X-Google-Attributes: gid10ab99,public X-Google-Thread: 1164ba,f959de4259a83187 X-Google-Attributes: gid1164ba,public X-Google-Thread: 109a70,f959de4259a83187 X-Google-Attributes: gid109a70,public X-Google-Thread: f645d,f959de4259a83187 X-Google-Attributes: gidf645d,public X-Google-Thread: 112458,f959de4259a83187 X-Google-Attributes: gid112458,public X-Google-Thread: 10feaf,f959de4259a83187 X-Google-Attributes: gid10feaf,public X-Google-ArrivalTime: 2000-12-06 17:23:25 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!novia!newsfeed.skycache.com!Cidera!newsfeed.comtenidos.com!m2newsfeed.uni2.es!m2newsread.uni2.es.POSTED!not-for-mail From: <take_it_out_infores@airtel.net> Subject: Re: [QBasic] Return a Array from a Function 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 References: <3a16b7ae$0$5188@SSP1NO25.highway.telekom.at> Lines: 27 Message-ID: <3EBX5.1210$rZ6.32389@m2newsread.uni2.es> Date: Thu, 07 Dec 2000 01:23:11 GMT NNTP-Posting-Host: 62.36.184.151 X-Complaints-To: abuse@wanadoo.es X-Trace: m2newsread.uni2.es 976152191 62.36.184.151 (Thu, 07 Dec 2000 02:23:11 MET) NNTP-Posting-Date: Thu, 07 Dec 2000 02:23:11 MET Organization: Servidor Usenet News de Uni2/Wanadoo