Looping through fields in an input set
June 22nd, 2001 12:19:48 pm pst by Sterling CamdenJust about every serious Synergy/DE UI Toolkit programmer I know has had to write a loop to do something with all or a series of fields in an input set. The code required for such a loop is not as simple as you might think. Rather than duplicating that logic everywhere you need it, try downloading the code below. It contains a function that will loop through a designated range of fields in an input set and call a designated routine with a series of arguments. Special argument values allow access to field-specific and set-specific information as well. An included example program demonstrates how to, for example, change the type of fields 4 through 8 of a set to decimal in a single statement, as well as how to use a custom callback function to do things like changing all required fields to have a blue background.
Posted in OpenVMS, SynergyDE, UI Toolkit, Unix, Windows | No Comments » RSS 2.0




