Search the web
Sign In
New User? Sign Up
magicu-l · uniPaaS (Magic) Software Users Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
FILEDLG() from a predefined directory   Message List  
Reply | Forward Message #65961 of 148675 |
Re: [magicu-l] FILEDLG() from a predefined directory

I just tested in Magic v7.11h and that syntax works for me.
Make sure that the translation for %DEFAULT_DIR% includes a
trailing backslash, as in 'C:\SomeDir\'.

Steve Blank

Tip: If you want to include more than one type in the Open
File dialog's 'Files of type' combo box, and filter accordingly,
use the following syntax:

FILEDLG ('My Files (*.tec)','%DEFAULT_DIR%*.tec'&CHR (0)&'All Files (*.*)'&CHR
(0)&'*.*')

This example allows the user to select 'All Files (*.*)' in the
combo box and, when they do, all files will be displayed.



At 01:04 PM 6/30/2003, you wrote:
>Hi group,
>
>Si there a way to start looking in a predefined directory for certain
>filetypes *.tec when using the FILEDLG function? If so, what is the correct
>syntax?
>
>I've tried FILEDLG('.tec','%DEFAULT_DIR%*.tec'), and although it brings me
>to the right directory, I couldnt get to display the *.tec files
>When I remove the logical name , it displays the *.tec files but by default
>goes to another directory.
>
>Thanks
>C.

----------------------------
Steven G. Blank
Salt Lake City, Utah USA
----------------------------




Mon Jun 30, 2003 7:29 pm

blanstev
Offline Offline
Send Email Send Email

Forward
Message #65961 of 148675 |
Expand Messages Author Sort by Date

Hi group, Si there a way to start looking in a predefined directory for certain filetypes *.tec when using the FILEDLG function? If so, what is the correct ...
Cyril Wan
cyril_w
Offline Send Email
Jun 30, 2003
7:04 pm

I just tested in Magic v7.11h and that syntax works for me. Make sure that the translation for %DEFAULT_DIR% includes a trailing backslash, as in...
Steven G. Blank
blanstev
Offline Send Email
Jun 30, 2003
7:27 pm

Cyril, That should work normally IF your logical name ends with a \ But i think that you have to make it a bit bigger, you always have to make it so that your...
Frank Van Herreweghe
magicman2be
Offline Send Email
Jun 30, 2003
7:40 pm

Cyril, This is an example of what we use in one of our systems. This works for us so it may help you figure out what is wrong. The variable x is a full...
Mike.McMillin
computabilit...
Offline Send Email
Jun 30, 2003
7:43 pm

Thanks Steve and Frank, I'm using Magic 8.2 and for some reason, the syntax you have given me doesnt seem to display the *.tec files as it should. I've added...
Cyril Wan
cyril_w
Offline Send Email
Jun 30, 2003
8:03 pm

Sorry, I lied. I thought I'd tested FILEDLG() with a logical name but, in fact, I had modified the wrong expression in my test program. This made me nuts for...
Steven G. Blank
blanstev
Offline Send Email
Jun 30, 2003
9:32 pm

Hi Steve, You wrote... "Now, if MSE would just add a comparable BrowseForFolder function..." Magic 9.4 can already do that without HF or Get. Cheers, Mark...
Mark Bailey
eagles9999
Offline Send Email
Jun 30, 2003
10:54 pm

Hi Mark, I saw the example in the Samples94 application using a Buffer and calls to Kernel32. But I'm having two problems with that approach: First, it...
Steven G. Blank
blanstev
Offline Send Email
Jun 30, 2003
11:31 pm

You're dead right Steve. I was not aware of the memory problem and I haven't a clue about what/where/why regarding the buffer and vector functions. I can only...
Mark Bailey
eagles9999
Offline Send Email
Jul 1, 2003
12:41 am

... You could use Steaming Haggis scripts to do it (or aren't you a WSH wiz?) Haggis not only gives you the power of a poor-man's delphi for free but will also...
Craig Martin
yoda_master_...
Offline Send Email
Jul 1, 2003
1:13 am

Where i can find a help or samples, for Haggis ? ######################################### MANOEL FREDERICO da COSTA da SILVA REPULLO Holding - MAGIC Brazil...
FREDERICO
fred2632
Offline Send Email
Jul 1, 2003
12:00 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help