Skip to content

ShowImage ​

Display image in Course listings as determined by the ScheduleFields INI setting.

Required Parameters ​

  1. Image Name: looks for a file with this name and either .jpg or .gif extension in the ace/images folder. If you include an extension and optionally a path, it will attempt to display the image as specified.

Optional Parameters ​

  1. Logical .t. Ignored if Image Name includes an extension. If .F. or omitted, looks for the .jpg first. If .T. looks first for a .gif extension, then a .jpg, then a .png.
  2. Character expression of style sheet class for image styling. If a class is supplied here (e.g. awRightText), a div tag with the associated class is used to handle formatting. If left blank, or NONE or CSS is entered (both must be entered in uppercase), the system will create a div with the default centering class, awCenterText.
  3. Numeric value:  the generated string will be padded with spaces to the specified length. Default value is 101. This is to prevent truncated strings when used in a cursor field. If zero, no padding will be done.
  4. Character Expression for image Alt text. If omitted, the default value is "Category Icon".
  5. Character expression to generate a URL on majorgroups.htm, showgroups.htm, or subgroups.htm. Used when displaying images on the groups page.

Example(s) ​

SHOWIMAGE(tGroups.crse) displays the image [name] stored in the Image File Name field on the Groups record.

SHOWIMAGE(tGroups.crse,.t.,[awRightText]) displays the image [name] stored in the Image File Name field on the Groups record using the awRightText style from the style sheet.

SHOWIMAGE(tGroups.crse,.t.,[NONE],10,[Program icon-click to access courses in the list]) displays the image [name] stored in the Image File Name field on the Groups record, with the "Program icon ..." uses as the image's Alt text.