My application has a "hidden" hotkey that opens up a special User Activity screen anytime the user presses Control F12, while on the main menu. In clarion I did this by setting an alert key for the window, then in the Events.AlertKey embed point I tested to see if the Control F12 was pressed and … Continue reading HotKey on a Window
Category: Quick Tips
Database Field as Text
When I want to display a database field as text (not an entry field) I've been creating a static control and then to setting the value in the code by doing something similar to: STC_Field = MyTableField Then I remembered "If it seems hard, you are probably doing it wrong!" and decided that style system … Continue reading Database Field as Text
TableSelectPlus
It easy to select a specific row of a table control with TableSelectPlus, but any code in the "Row Selection" process will not be executed. Read on to see how to make your code fire.
NumToString
Since WX treats screen controls as strings (including columns of a table) Trace(NumToString(COL_HstInvHdrSysId,"012d")) does not work. You don't get an error, it just doesn't do anything because it's not a number. So if COL_HstInvHdrSysId contains 123456 the result will be 123456. instead you have to do: nHstInvHdrSysId is int = COL_HstInvHdrSysId Trace(NumToString(nHstInvHdrSysId,"012d")) Now you will … Continue reading NumToString
