System.SysUtils.StringToGUID

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function StringToGUID(const S: string): TGUID;

C++

extern DELPHI_PACKAGE GUID __fastcall StringToGUID(const System::UnicodeString S);

Propriétés

Type Visibilité  Source Unité  Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

Convertit une chaîne en GUID.

StringToGUID convertit la représentation sous forme de chaîne d'un GUID, S, en structure de données TGUID équivalente.

Si StringToGUID réussit, elle renvoie le GUID demandé. Si StringToGUID échoue, une exception EConvertError est déclenchée.

Voir aussi