Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Price change
#8
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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)