Welcome! and rules
Joel on Software
I'm creating a class module which simulates trucks departing and arriving from the terminal. I am trying to create a method named FindTruck which accepts one argument the TruckId and return a Truck structure,but return nothing if a Tthe truck isn't found. I am a newbie
Structs can't be null (not until .NET 2.0 that is). Either define a constant of type Truck that has recognizable invalid fields, or use a class instead.
Return 0 and your code knows that 0 = no trucks found.
Try it like this;
Fog Creek Home