TStrings.AsJSONArray
redirigé depuis TStrings.SetAsJSONArray
| TStrings = class (TObject) | Interface de TStrings | Exemples de TStrings |
Qubes 6.0 Permet d'accéder à la représentation JSON du contenu
Syntaxe
property AsJSONArray: String read GetAsJSONArray write SetAsJSONArray
Remarques
Pour plus d'information sur le format JSON, cliquer ici.
Exemples
var liste := TStrings.Create;
liste.Commatext := 'paul,pierre,jacques';
liste.Sort;
InformationDlg(liste.AsJSONArray); // Lecture : affiche '["jacques","paul","pierre"]'
liste.Commatext := 'paul,pierre,jacques';
liste.Sort;
InformationDlg(liste.AsJSONArray); // Lecture : affiche '["jacques","paul","pierre"]'