![]() This can be especially help if you are doing a presentation. Omnis allows you to change the font sizes in most of the IDE (Interactive Developer Environment) windows. ![]() NOTE: The object-oriented programming police might give you a speeding ticket for doing this. Now when the window opens the the class variable value for "cName" will be. wPreassignVariables.SetClassVariable ('cName',Value) I can run the class method with the following line of code:ĭo code method. So for example, in StudioTips I have a method called "setClassVariable" in the window class "wPreassignVariables". The "Do code method" is not limited to "code classes" but can be pointed to any class method of any type of class. The trick for doing this is to use the "Do code method" command. You might run into a situation where you want to call a class method without first creating an instance of the class. Try it out yourself by clicking the "Run Demo" button. 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 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
August 2023
Categories |