Log In    |    Knowledge Base    |    4D Home
Tech Tip: Typing declarations for List Boxes
PRODUCT: 4D | VERSION: 2004.5 | PLATFORM: Mac & Win
Published On: March 29, 2007
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

When working with List Boxes the documentation is not especially clear regarding how to type the arrays and variables involved. Here are the appropriate data types for List Boxes:

  • The list box itself is a boolean array (e.g. ARRAY BOOLEAN(listbox1;0)).
  • The headers are longints (e.g. C_LONGINT(header1)).
  • The columns are arrays of the data type they hold (e.g. ARRAY TEXT(Column1;0)).

An example of how to type a list box array is listed at the bottom of the Management of List box objects page in the language reference:

Note: The List Box Boolean array keeps track of which rows are selected (True = selected, False = not selected). The above link goes into more detail regarding list box management.