The LISTBOX GET GRID COLORS command returns the color of the horizontal and vertical lines making up the grid of the list box object designated by the object and * parameters.
If you pass the optional * parameter, this indicates that the object parameter is an object name (a string). If you do not pass this parameter, this indicates that the object is a variable. In this case, you pass a variable reference instead of a string.
In hColor and vColor, the command returns the values of the RGB colors. The color format depends on the type of the parameter you passed in hColor and vColor:
- if you passed a text, the color will be expressed as a CSS text (format "#rrggbb")
- if you passed a longint, the color will be expressed as a 4-byte Long Integer (format 0x00rrggbb).