<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    ----- Message d'origine ----- <br>
    De : Loïc GIROD <br>
    Date : 23/02/2011 16:52:
    <blockquote
      cite="mid:00eb01cbd371$a2ef5470$e8cdfd50$@esstin.uhp-nancy.fr"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Lucida Sans Typewriter";
        panose-1:2 11 5 9 3 5 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Préformaté HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texte de bulles Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.TextedebullesCar
        {mso-style-name:"Texte de bulles Car";
        mso-style-priority:99;
        mso-style-link:"Texte de bulles";
        font-family:"Tahoma","sans-serif";}
span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:"Courier New";
        mso-fareast-language:FR;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hello, <o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span lang="EN-US">I would like to use the
            function uigetfile by specifying the first character of the
            file to select.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">For instance, I would
            like only files starting with “P_” like P_80, P_102…<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">I’ve tried with the
            following code : <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 10.5pt;
            font-family: "Lucida Sans Typewriter"; color:
            rgb(50, 185, 185);" lang="EN-US">uigetfile</span><span
            style="font-size: 10.5pt; font-family: "Lucida Sans
            Typewriter"; color: rgb(74, 85, 219);" lang="EN-US">([</span><span
            style="font-size: 10.5pt; font-family: "Lucida Sans
            Typewriter"; color: rosybrown;" lang="EN-US">"P_*.*"</span><span
            style="font-size: 10.5pt; font-family: "Lucida Sans
            Typewriter"; color: rgb(74, 85, 219);" lang="EN-US">]</span><span
            style="font-size: 10.5pt; font-family: "Lucida Sans
            Typewriter"; color: black;" lang="EN-US">,</span><span
            style="font-size: 10.5pt; font-family: "Lucida Sans
            Typewriter"; color: rosybrown;" lang="EN-US">""</span><span
            style="font-size: 10.5pt; font-family: "Lucida Sans
            Typewriter"; color: black;" lang="EN-US">,</span><span
            style="font-size: 10.5pt; font-family: "Lucida Sans
            Typewriter"; color: rosybrown;" lang="EN-US">'select P
            file'</span><span style="font-size: 10.5pt; font-family:
            "Lucida Sans Typewriter"; color: rgb(74, 85,
            219);" lang="EN-US">)</span><span style="font-size: 10.5pt;
            font-family: "Lucida Sans Typewriter";"
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">but the dialog box
            selecs all extensions (*.*).<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Is there a way to do
            that ?</span></p>
      </div>
    </blockquote>
    <br>
    It was possible with the former tk_getfile() (Scilab 4.1.2), while
    it has <br>
    regressed with uigetfile() and is no longer possible with Scilab 5:
    <br>
    See <a class="moz-txt-link-freetext" href="http://bugzilla.scilab.org/show_bug.cgi?id=4847">http://bugzilla.scilab.org/show_bug.cgi?id=4847</a><br>
    <br>
    Do not hesitate to post on this Bugzilla thread, to awake it.<br>
    <br>
    Regards<br>
    Samuel<br>
    <br>
  </body>
</html>