<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>MaskList is used in TCustomShellTreeView.GetFilesInDir().<br></div><div>It sets a mask option <b>moDisableSets</b>. Why are sets disabled? Is it to stay compatible with FindFirstUTF8() syntax?</div><div>I don't fully understand the comment. Why would EConvertError be raised?</div><div><br></div><div><div>      //Disable the use of sets in the masklist.</div><div>      //this behaviour would be incompatible with the situation if no MaskList was used</div><div>      //and it would break backwards compatibilty and could raise unexpected EConvertError where it did not in the past.</div><div>      //If you need sets in the MaskList, use the OnAddItem event for that. (BB)</div><div>      MaskOptions := [moDisableSets];</div><div>      {$ifdef NotLiteralFilenames}</div><div>      if (ACaseSensitivity = mcsCaseSensitive) then</div><div>        MaskOptions := [moDisableSets, moCaseSensitive];</div><div>      {$else}</div><div>      if (ACaseSensitivity <> mcsCaseInsensitive) then</div><div>        MaskOptions := [moDisableSets, moCaseSensitive];</div><div>      {$endif}</div><div>      MaskList := TMaskList.Create(MaskStr, ';', MaskOptions);  //False by default</div></div><div><br></div><div>Anyway I don't see why a useful Mask syntax should be disabled. Can this be solved by other means?</div><div>Can José's mask do a similar thing?</div><div><br></div><div>Juha</div><div><br></div></div></div></div></div></div></div></div>