Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SELECT * from myTable INTO ARRAY arySource
if _tally = 0
thisform.list1.rowsource = ""
endif
Dimension arySource(1)
[b]arySource(1) = ""[/b]
SELECT * from myTable INTO ARRAY arySource
How can I display an empty list instead of one line of .F. when the result is empty?
*** First Check to see if this combo has an empty array as its RowSource
*** because if it does, we will disable it so we don't see the little
*** .F. when it is dropped down
IF This.RowSourceType = 5 AND TYPE( 'This.aContents[ 1, 1 ]' ) = 'L'
*** We have no items, disable the combo
This.Enabled = .F.
ELSE
This.Enabled = .T.
ENDIF