11-12-2009, 06:39 AM
Quote:What does the & sign do? Why does it not work without it?
Look in QM Help -> "Pointer, reference, array" topic.
p is reference. Initially it is reference to nothing. &p=ap[] sets it to be reference to the new array element that is added by ap[]. Now p.something is the same as ap[x].something. Here I used reference to make easier to add/remove price ranges because don't need to use array index (ap[0], ap[1], etc).
Maybe will help this example with files:
variable is file.
reference is shortcut.
&reference=variable is like you set file path in shortcut's Properties dialog.