Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old June 11th, 2004, 04:36 AM
jeanbuchan jeanbuchan is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: A small village called Sandhaven 42 miles north of aberdeen
Posts: 1 jeanbuchan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How to remove from a position on a user-defined list

Hi there,
Hope someone can help me.
I've got a program which simulates a lift going up and down, adding and removing passengers from queues as it traverses the floors.
Lift moves up and down - works fine.
Customer details are added to a dynamic queue at each floor - works fine.
When the lift arrives at a floor it should remove passengers if they are due to alight at this floor then take on passengers if any are waiting in the queue, up to a static length of six.
Uptake of passengers - works fine.
However, the removal is a gigantic headache. I've had it almost working but the wrong passenger details are removed.

I've tried two ways - I have a boolean in the lift( a user-defined type) which shows true if the required floor is equal to the lift position.
I tried to loop through the array of customer details in the lift until this is false, but I'm having difficulties with parameters and global variables.

I've also tried dispensing with the boollean and just done an if statement, if the required floor is equal to the lift position, but I can't get this to work either.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > How to remove from a position on a user-defined list


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway