smapak wrote:

> How do i implement Queues in VB6. like in C++ we have the STL 
> or we can always make out own pointer based implementation of 
> these data structures. I can implement queue using an array 
> in VB but that puts a constraint on size. any solutions to this

The "easy" way is to use a collection.

Private cv As Collection

Public Sub InitializeQueue()
  Set cv = New Collection
End Sub

Public Sub AddItemToEndOfQueue(ByVal v As Variant)
  cv.Add v
End Sub

Public Function GrabFirstItemFromQueue As Variant
  GrabFirstItemFromQueue = v
  cv.Remove v
End Function


Adelle.




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/k7folB/TM
--------------------------------------------------------------------~-> 


'// =======================================================
    Rules : http://ReliableAnswers.com/List/Rules.asp
    Home  : http://groups.yahoo.com/group/vbHelp/
    =======================================================
    Post  : [email protected]
    Join  : [EMAIL PROTECTED]
    Leave : [EMAIL PROTECTED]
'// =======================================================
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vbhelp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




Reply via email to