Thread View: alt.lang.basic
9 messages
9 total messages
Started by Ferdinand Svehla
Sat, 18 Nov 2000 00:00
[QBasic] Return a Array from a Function
Author: Ferdinand Svehla
Date: Sat, 18 Nov 2000 00:00
Date: Sat, 18 Nov 2000 00:00
5 lines
1320 bytes
1320 bytes
Hello to all of you coders out there :) I have a function and i want the function to return an array... thankyou very much... i love you all :.)
Re: [QBasic] Return a Array from a Function
Author: Tom Lake
Date: Sat, 18 Nov 2000 00:00
Date: Sat, 18 Nov 2000 00:00
20 lines
1654 bytes
1654 bytes
> I have a function and i want the function to return an array...
Can't do it. Try using a SUB with the array as one of the parameters.
DIM a(1 TO 20)
FOR i = 1 to 20
a(i) = i
NEXT i
MultBy2 a()
FOR i = 1 TO 20
PRINT a(i);
NEXT i
END
SUB MultBy2(b())
FOR i = 1 TO UBOUND(b)
b(i) = b(i) * 2
NEXT i
END SUB
Tom Lake
Re: [QBasic] Return a Array from a Function
Author: 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 >
Re: [QBasic] Return a Array from a Function
Author: 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
Cheetah v2.0!
Author: brandon
Date: Sat, 16 Dec 2000 22:34
Date: Sat, 16 Dec 2000 22:34
45 lines
2609 bytes
2609 bytes
Hello, I have created a programming language that makes it incredibly simple for beginners to start programming. It's called Cheetah v2.0, and it is fast, easy, and effective. You can create a program in two lines of code! You can make simple games, write a webpage, etc. It's what complete newbies have been waiting for! It is also priced reasonably. You can evaluate it as long as you want, but if you pay the $5.00 registration fee, you will be able to: 1. Save and open programs. 2. Wav Preview, Bitmap Preview, and Sprite Creator Tools are unlocked. 3. Use the Cheetah compiler so you can distribute your program as an exe file. 4. Free updates. 5. When a new version comes out you will get that for free also. I guarantee you will find this the easiest way to write a simple program. I would like to emphasize that it is not intended to be a language that you stay with forever. You are supposed to get the fundamentals and move on. I suggest moving on to the language Liberty BASIC. It is in fact what I wrote Cheetah in. To download Cheetah v2.0 go to: http://www.angelfire.com/ga3/wattsware/Cheetah.zip You can also go to the Wattsware website at: http://www.wattsware.com I hope you enjoy using Cheetah v2.0! =) Brandon Watts wattsware.com Sent via Deja.com http://www.deja.com/
Cheetah v2.0!
Author: brandonwatts
Date: Sat, 16 Dec 2000 22:36
Date: Sat, 16 Dec 2000 22:36
45 lines
2598 bytes
2598 bytes
Hello, I have created a programming language that makes it incredibly simple for beginners to start programming. It's called Cheetah v2.0, and it is fast, easy, and effective. You can create a program in two lines of code! You can make simple games, write a webpage, etc. It's what complete newbies have been waiting for! It is also priced reasonably. You can evaluate it as long as you want, but if you pay the $5.00 registration fee, you will be able to: 1. Save and open programs. 2. Wav Preview, Bitmap Preview, and Sprite Creator Tools are unlocked. 3. Use the Cheetah compiler so you can distribute your program as an exe file. 4. Free updates. 5. When a new version comes out you will get that for free also. I guarantee you will find this the easiest way to write a simple program. I would like to emphasize that it is not intended to be a language that you stay with forever. You are supposed to get the fundamentals and move on. I suggest moving on to the language Liberty BASIC. It is in fact what I wrote Cheetah in. To download Cheetah v2.0 go to: http://www.angelfire.com/ga3/wattsware/Cheetah.zip You can also go to the Wattsware website at: http://www.wattsware.com I hope you enjoy using Cheetah v2.0! =) Brandon Watts wattsware.com Sent via Deja.com http://www.deja.com/
Sv: Cheetah v2.0!
Author: Thomas Daugaard
Date: Sun, 17 Dec 2000 13:38
Date: Sun, 17 Dec 2000 13:38
59 lines
3194 bytes
3194 bytes
<brandon@brandonwatts.com> skrev i en nyhedsmeddelelse:91gql2$j63$1@nnrp1.deja.com... > Hello, > > I have created a programming language that makes it incredibly simple > for beginners to start programming. It's called Cheetah v2.0, and it is > fast, easy, and effective. > > You can create a program in two lines of code! You can make simple > games, write a webpage, etc. It's what complete newbies have been > waiting for! > > It is also priced reasonably. You can evaluate it as long as you want, > but if you pay the $5.00 registration fee, you will be able to: > Then why should people use your program instead of Liberty Basic at first ? This is just what we need .. another "pay and you can compile and do this and that" interpreter/language. NOT!! Why don't you make it free ?? $5 .. do you really think anyone will pay that ? - Thomas > 1. Save and open programs. > 2. Wav Preview, Bitmap Preview, and Sprite Creator Tools are unlocked. > 3. Use the Cheetah compiler so you can distribute your program as an > exe file. > 4. Free updates. > 5. When a new version comes out you will get that for free also. > > I guarantee you will find this the easiest way to write a simple > program. > > I would like to emphasize that it is not intended to be a language that > you stay with forever. You are supposed to get the fundamentals and > move on. I suggest moving on to the language Liberty BASIC. It is in > fact what I wrote Cheetah in. > > To download Cheetah v2.0 go to: > > http://www.angelfire.com/ga3/wattsware/Cheetah.zip > > You can also go to the Wattsware website at: > > http://www.wattsware.com > > I hope you enjoy using Cheetah v2.0! =) > > Brandon Watts > wattsware.com > > > > Sent via Deja.com > http://www.deja.com/
Re: Sv: Cheetah v2.0!
Author: brandon
Date: Sun, 17 Dec 2000 17:18
Date: Sun, 17 Dec 2000 17:18
18 lines
1791 bytes
1791 bytes
<<Then why should people use your program instead of Liberty Basic at first ? This is just what we need .. another "pay and you can compile and do this and that" interpreter/language. NOT!!>> Because Cheetah is the easiest way for beginners to start programming. I suggest moving on to LB once you have mastered C2. <<Why don't you make it free ?? $5 .. do you really think anyone will pay that ?>> People already have. Brandon Watts wattsware.com Sent via Deja.com http://www.deja.com/
Sv: Cheetah v2.0!
Author: Thomas Daugaard
Date: Sun, 17 Dec 2000 17:48
Date: Sun, 17 Dec 2000 17:48
33 lines
2546 bytes
2546 bytes
<brandon@brandonwatts.com> skrev i en nyhedsmeddelelse:91ishl$vtt$1@nnrp1.deja.com... > <<Then why should people use your program instead of Liberty Basic at > first ? This is just what we need .. another "pay and you can compile > and do this and that" interpreter/language. NOT!!>> > > Because Cheetah is the easiest way for beginners to start programming. > I suggest moving on to LB once you have mastered C2. Programming ? Do you call that "Cheetah" thing for programming ? I looked at it (always intereset in new programming languages not made by any major software company like M$) and it looks like something M$ could've made for Windows 2.0 It isn't even programming .. it's scripting .. if it even qualifies for that .. > > <<Why don't you make it free ?? $5 .. do you really think anyone will > pay that ?>> > > People already have. Wow! Well .. there still are people left who have no clue what they're actually paying for .. > > Brandon Watts > wattsware.com > > > Sent via Deja.com > http://www.deja.com/
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads