A question about Hash

A question about Hash

Postby vilian » Fri Feb 21, 2020 1:14 pm

Hi guys,
I have this Hash:
Code: Select all  Expand view  RUN
{"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
vilian
 
Posts: 978
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: A question about Hash

Postby leandro » Fri Feb 21, 2020 1:46 pm

Así debería funcionar

Code: Select all  Expand view  RUN


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

 
Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Embarcadero C++ 7.60 for Win32 ] [ FiveWin 23.07 ] [ xHarbour 1.3.0 Intl. (SimpLex) (Build 20230914) ]
User avatar
leandro
 
Posts: 1676
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia

Re: A question about Hash

Postby vilian » Fri Feb 21, 2020 2:00 pm

Thanks ;)
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 978
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 96 guests