<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../style.css">
<title>
Gambas Documentation - Dialog.Filter
 (gb.qt.kde)</title>
</head>
<body>
<table class="none" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<font size="-1">
<a href="../../../../help%3Fen"><img class="flag" alt="Home" border="0" src="../../../../img/lang/en.png" align="center"></a>&nbsp;&nbsp;
<a href="../dialog%3Fen">Up</a>&nbsp;&nbsp;
<a href="color%3Fen">Previous</a>&nbsp;&nbsp;
<a href="openfile%3Fen">Next</a>&nbsp;&nbsp;
</td></tr></table>
<div class="notab">
<h1>
Dialog.Filter
 (gb.qt.kde)</h1>
<div class="black"><font color="white" size="-2"><b>Syntax</b></font></div>
<pre class="syntax"><font color="blue">STATIC</font> <font color="blue">PROPERTY</font> <b>Filter</b> <font color="blue">AS</font> <font color="#0080FF"><a href="../../gb/string[]%3Fen">String[]</a></font></pre>
Returns or sets the filters used in the file standard dialog.
This property receives a string array whose each element represents
one filter.
<p>
Each filter string must follow the following syntax:
<p>
<ul>
<li>The filter name.
<li>A space.
<li>A opening bracket.
<li>One or more file patterns, separated by semicolons.
<li>A closing bracket.
<p>
</ul>

<div class="gray"><font color="white" size="-2"><b>Example</b></font></div>
<pre class="example">Dialog.Title = &quot;Choose a file&quot;
Dialog.Filter = [ &quot;Picture files (*.png; *.jpg; *.jpeg; *.bmp)&quot;, &quot;All files (*)&quot; ]
Dialog.Path = &quot;/home/hjh/spiele/sudoku&quot;
IF Dialog.OpenFile() THEN
  RETURN ' User pressed Cancel - does not want to open any file
ENDIF
' User did select a file</pre>
<p>

<hr><b>See also</b><br>
<a href="../../gb.qt/dialog%3Fen">Dialog</a>&nbsp;&nbsp; <a href="../../gb/string[]%3Fen">String[]</a>&nbsp;&nbsp;

</div>
<hr>
</body>
</html>

