A question about Hash

Post Reply
User avatar
vilian
Posts: 795
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

A question about Hash

Post by vilian »

Hi guys,
I have this Hash:

Code: Select all

{"Numero":68825,"Serie":"1","Filial":"","CNPJCli":"01716341000120","TpDoc":"6","InfAdic":null,"Erros":{"Erro":[{"Codigo":"033","Descricao":"CNPJ emissor nao autorizado para averbar...","ValorInformado":"009256139000175"}]}}
How could I get the content of "Descricao" ?
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
leandro
Posts: 958
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia
Contact:

Re: A question about Hash

Post by leandro »

Así debería funcionar

Code: Select all


cDes := hElhash ["Erros"]["Erro"][1]["Descricao"]

 
Saludos
LEANDRO ALFONSO
SISTEMAS LYMA - BASE
Bogotá (Colombia)
[ FWH 19.09 ] [ xHarbour 1.2.3 Intl. (SimpLex) (Build 20190613) ] [ Embarcadero C++ 7.30 for Win32 ]
User avatar
vilian
Posts: 795
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Re: A question about Hash

Post by vilian »

Thanks ;)
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Post Reply