File Search Lab (WSearch) - Adding Extension Filter


No replies
cbrad
cbrad's picture
Offline
...burning like a watchful eye...I am a moderatorI've been here since the first tree. I am betaMy name if Forest WiBit.Nothing on Earth could stop the coding...A Coding BeautyDriving Ms. ChickyYou maniac! You blew it up! The compiler that is.Halfsies!W007! I watched 10 vids!I don't know when to shut up.We propose a toast! To you!I found a bug so fix it!
Joined: 2011-06-14
Points: 2785

Worked my way through the WSearch Tutorial and am attempting the 'homework'.  

Maybe you can push me in the right direction here.

I started out by making another String variable "extFilter" and started it as a null.  getting the extension was easy but how do I handle a null?

I would like to say that if extFilter was null, use the constructor with 3 params and if it's not null than use a constructer for search that has 4 params.  It seems that this would involve a lot of duplication of code - any hints as to which way I should go?

__________________

Cheers,

cbrad.)