BBS: The MOONFLOWER
Date: 09-24-93 (13:16) Number: 101
From: REPUBLIC #246 @1512007*1 Refer#: NONE
To: CABLE #28 @3546*1 Recvd: YES
Subj: Yeah I Know How to do it Conf: (125) The Progra
> I just want someone to at least say an "Yeah I want to know how to do that
> too" most of the books I have on the Quick Sort are in C or Pascal. I'm
> trying to do a Repeat Until or DO While type of loop in BASIC and use
> pointers and data structures. Is it possible to do something like that
> without pointers?
Visual basic uses pointers they are however user transparent for the
most part if you don't include the byVal in the sub or function hedding then
what is sent to the sub or funktion is a pointer to the variable.
If you want to sort a list of strings you can do it by simply setting
sort to true in the list box befor loading the strings into it. If you want a
gereral sort rutine. here is a sudo basic version.
Sub Sort (Array of "WhatEver")
Size as Integer
Out_Order = TRUE
Do while Out_Order
Out_Order = FALSE
For count = 1 to Size
If OutOfPlace(Array(Count), Array(Count+1)) then
Out_order = TRUE
Holder = Array(Count)
Array(Count) = Array(Count + 1)
Array(Count + 1) = Holder
I have to cut this short I am running out of time.
T á.it Austin, Texas 24 hours/day VNET: @1512007 FIDO: @1:382/402
h á.ucket (512)280-6785 14.4/Fax AT&T WWIVNet: @5290
e S.ystem Bit Twiddler 1+GB of files AustinNet: @4 VBBS 6.10a
0Via: 1512007*1 1512001*1 1616001*1 6160*1 1509509*1