Word wrapping in procedure window

ysspatil
Posts: 8
Joined: 2014-05-13
Location: United States

In Igor 7, is there a way to wrap text in the procedure window?

Or equivalently, is there a way to continue an expression over more than one line? i.e. can
a = b + c + d + e
be somehow manually entered in the procedure window as
a = b + c +
d + e


Posts: 1614
Joined: 2007-06-21
Location: United States

Quote:
In Igor 7, is there a way to wrap text in the procedure window?

No.

Quote:
Or equivalently, is there a way to continue an expression over more than one line? i.e. can
a = b + c + d + e
be somehow manually entered in the procedure window as
a = b + c +
d + e

Yes. Execute:
DisplayHelpTopic "Line Continuation"

However, it is often more readable and easier to debug if you use temporary variables to store intermediate values. For example:

Variable part1 = a + b
Variable part2 = c + d
Variable result = part1 + part2


Back to top