May 2010
Intermediate to advanced
1272 pages
61h 18m
English
Structures can be passed to methods as arguments. For example, consider the following method that simulates an order processing taking an instance of the previously shown Order structure:

You can then simply invoke the method passing the desired instance as follows:
Dim firstOrder As New Order(1, Date.Now, Date.Now, 1, 1) ShowOrderInfo(firstOrder)
The preceding code produces an output that looks like this:
ID: 1, Date received: 08/19/2009 23:41:37
Read now
Unlock full access