Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

listbox display 1

Status
Not open for further replies.

sncheong

Programmer
Jan 18, 2001
47
NZ
i am using vfp6 and in my listbox, the rowsource is "*.zip" which shows all zipped files. how can i restrict the display to show only 'I*.zip' and 'S**.zip' files? ta
 
Sncheong,
Why didnt you try List1.Rowsource="i*.zip"
'S**.zip' files , do you mean 'S??.*' ?, just try it. It will do the job very well

Jimmy
mailto:nhan_tiags@yahoo.com
 
Hi!

sncheong, I doub you will be able to display both masks result simultaneously using listbox row source type for files. Try to use adir() function and fill listbox manually using its methods AddItem and AddListItem...

Hope this helps.


Vlad Grynchyshyn
vgryn@softserve.lviv.ua
The professional level of programmer could be determined by level of stupidity of his/her bugs
 
yes the adir() is the answer and i can also put the date of the file with its name to make the listbox more meaningful. tks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top