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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making a custom filter in FileBrowserInfo default

Status
Not open for further replies.

WelshyWizard

IS-IT--Management
Apr 23, 2006
89
GB
I'm using Paradox 8.

I have the following code which creates a customfilter file type of .rep

Code:
fbiXfile.Options=browseOptPathMustExit
fbiXfile.Alias=":PM:"
fbiXfile.CustomFilter = "(Report) *.rep|*.rep||"

What I want to do is to have this custom file type as my default upon opening the file browser.

I know there is something available like
Code:
fbiXfile.DefaultExt="TXT"
but I can't get this to work....

Any ideas guys and girls?

Cheers.

Today is the tomorrow you worried about yesterday - and all is well.....
 
Anyone?

Today is the tomorrow you worried about yesterday - and all is well.....
 
Forget the defaultExt parameter.

By supplying the .rep in the custom filter, the file browser will show only those files.

I used your exact code, after creating a .rep file. Worked as it should.

Now, if you want to CREATE a file, use the defaultExt and make it .rep or .txt (note the period).




Tony McGuire
"It's not about having enough time. It's about priorities.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top