Home > Archive > Clipper > August 2006 > How to know which filter was selected in a SaveasDialog?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to know which filter was selected in a SaveasDialog?
|
|
| ventas@logicatropical.com 2006-08-23, 6:55 pm |
| I'd like to know which filter was selected when the user pressed the
save buttom in a SaveasDialog. If the user doesn't write the extension
then the filename doesn't have the extension even if there is other
filter selected than the default.
Is it posible to know what filter was selected?
Thank you very much,
Juan
| |
| Stephen Quinn 2006-08-23, 6:55 pm |
| Juan
If it's your app - what did you assign before showing the dialog??
If it's your app - what format will you be (normally) saving it in (text, excel,
word, rtf, etc...)??
- ie if they just select Save instead of SaveAs.
If it's a clipper app - do you have the source to the dialog??
If so you could add the relevant code to give you that info??
HTH
Steve
| |
| ventas@logicatropical.com 2006-08-24, 6:55 pm |
| Hi Steve
Thank you for your answer.
The app is written in CAVO 2.5
I'm using a SaveAs Dialog and I'm seting 2 filters: ".pry" and ".pyt"
If the user select an existing file is ok because the Dialog writes the
full name with its extension. Also it is ok if the user writes the
extension.
The problem is when the user writes a name without an extension because
the dialog doesn't append the extension that correspond to the filter
the user has selected.
I wonder if there is a way to know which filter was selected when the
user pressed the save bottom.
Thank you very much,
Juan
Stephen Quinn wrote:
> Juan
>
> If it's your app - what did you assign before showing the dialog??
> If it's your app - what format will you be (normally) saving it in (text, excel,
> word, rtf, etc...)??
> - ie if they just select Save instead of SaveAs.
>
> If it's a clipper app - do you have the source to the dialog??
> If so you could add the relevant code to give you that info??
>
> HTH
> Steve
| |
| Ross McKenzie 2006-08-24, 6:55 pm |
| On 24 Aug 2006 07:37:23 -0700, ventas@logicatropical.com wrote:
>Hi Steve
>
>Thank you for your answer.
>The app is written in CAVO 2.5
In which case Juan, you should be s ing help over in the Visual
Objects newsgroup....not here.
>Thank you very much,
>
>Juan
Regards,
Ross McKenzie
ValuSoft
Melbourne Australia
valusoft AT optusnet DOT com DOT au
| |
| Stephen Quinn 2006-08-24, 9:55 pm |
| Juan
What Ross said<g>
You could always write both<bg>.
If your using Fabrices library you could add the functionality you require as
source code for his SFD is available there IIRC.
HTH
Steve
| |
| ventas@logicatropical.com 2006-08-25, 6:55 pm |
| oops!
I'm sorry
I thought I was in the visual objects group.
Thanks
Juan Chavarr=EDa
Ross McKenzie wrote:
> On 24 Aug 2006 07:37:23 -0700, ventas@logicatropical.com wrote:
>
>
> In which case Juan, you should be s ing help over in the Visual
> Objects newsgroup....not here.
>
>
>
> Regards,
>
> Ross McKenzie
> ValuSoft
> Melbourne Australia
>=20
> valusoft AT optusnet DOT com DOT au
|
|
|
|
|