

I must have been sleeping when they taught this trick in Omnis 101! What an amazing revelation for me to find out about this. Any time you want to break into your code to start stepping through it, press the correct key combination and bingo, you are into the method editor at the location of the OK message! Slap in some helpful OK messages where you are trying to solve a problem in your code. You can break into your code at any OK message. Use 'Calculate $ref.$selected as not($ref.$selected)' Instead of 'Calculate $ref.$selected as pick($ref.$selected=kTrue,kTrue,kFalse)'

Instead of '$ref.$selected=kFalse, use 'not($ref.$selected)'

Instead of '$ref.$selected=kTrue', use '$ref.$selected' Reg helped me out with the above tip, and examples as follows. I'm still trying to catch on to using Boolean logic in my code. Hey, everything needs a "Miscellaneous" category! This section is the odds and ends that didn't fit in the other categories.Īny expression in Omnis will evaluate to true or false (or NULL) when used in boolean logic, so there is no need to compare the expression to kTrue or kFalse. Tips_wip > Misc > Miscellaneous Miscellaneous
