LoadListWithFilesEx (rtl)
De Wiki1000
(Différences entre les versions)
| Ligne 24 : | Ligne 24 : | ||
<source lang='delphi'> | <source lang='delphi'> | ||
| + | // return documents from a container with filtering on container virtual path | ||
| + | var ls:TStringList; | ||
begin | begin | ||
| + | ls := TstringList.Create; | ||
| + | LoadListWithFilesEx(ls,'ctn://FS-Archives','S3/*.asice',0,false); | ||
| + | showMessage(ls.Text); | ||
end; | end; | ||
</source> | </source> | ||
| Ligne 32 : | Ligne 37 : | ||
{{Footer|Développement DSM}} | {{Footer|Développement DSM}} | ||
[[category:RTL Fichiers]] | [[category:RTL Fichiers]] | ||
| − | |||
Version du 16 février 2023 à 15:38
Procedure LoadListWithFilesEx(ls:TStrings; const iPath:string; const iMask:string; iFileAttributes:Integer; iRecursive:boolean);
Cette fonction alimente la liste avec les fichiers présents dans le répertoire.
| ls | Liste de chaine alimentée par la fonction. |
| iPath | Chemin du répertoire. |
| iMask | Masque de fichiers. |
| iFileAttributes | Attributs des fichiers retournés. |
| iRecursive | Parcours récursivement les répertoires. |
Exemple
// return documents from a container with filtering on container virtual path var ls:TStringList; begin ls := TstringList.Create; LoadListWithFilesEx(ls,'ctn://FS-Archives','S3/*.asice',0,false); showMessage(ls.Text); end;
Voir aussi:
| Whos here now: Members 0 Guests 0 Bots & Crawlers 1 |