thegame8311
Technical User
hopefully this one is easier
I understand that when an array is empty it stores a .F. as the first element, since I have this set up in a listbox display, I don't want it to display .F. in the listbox. I can seem to find an if statement that works with the following code.
If the array returns .F. I want nothing to display in the listbox
Note: there are declared variables for the below code
I understand that when an array is empty it stores a .F. as the first element, since I have this set up in a listbox display, I don't want it to display .F. in the listbox. I can seem to find an if statement that works with the following code.
If the array returns .F. I want nothing to display in the listbox
Note: there are declared variables for the below code
Code:
FOR I = 1 TO Recnums
SELECT Player FROM (mTeams[I]) WHERE Player = (PName) INTO ARRAY Pary
Sary = Pary
IF ALEN(Sary) > 0
thisform.list1.RowSourceType = 5
thisform.list1.RowSource = 'Sary'
thisform.list1.ColumnCount = 1
thisform.list1.ColumnWidths = "100"
ENDIF
IF ALEN(Pary) = 0
thisform.list1.RowSourceType = 1
thisform.list1.RowSource = "Player"
thisform.list1.ColumnCount = 1
thisform.list1.ColumnWidths = "100"
ENDIF
ENDFOR