FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour HB_ReadIni xharbour com bcc
Posts: 74
Joined: Sun Aug 27, 2017 07:18 PM
HB_ReadIni xharbour com bcc
Posted: Thu Oct 10, 2024 07:55 PM
隆Buenas tardes!
Estoy intentando convertir un sistema de xharbour xcc a xharbour bcc7 y hay una funci贸n llamada HB_ReadIni que lee archivos ini y devuelve el contenido en un hash. Pero cuando llega esta funci贸n, 隆el sistema simplemente se cierra! 驴Alguien ha experimentado esto alguna vez? 驴Existe alguna funci贸n que lea un archivo ini y devuelva un hash? Acepto sugerencias
Code (fw): Select all Collapse
 [MAIN]
[Update]
CNPJEmp=
PLANOSIS=
UpdateAuto=S
hash:
Code (fw): Select all Collapse
 hRet["Update"] := Hash()
聽hRet["Update"]["CNPJEmp"] := ""
聽hRet["Update"]["PLANOSIS"] 聽:= "1"
聽hRet["Update"]["UpdateAuto"] 聽 聽:= "S"
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: HB_ReadIni xharbour com bcc
Posted: Fri Oct 11, 2024 04:44 AM
Copia el c贸digo de la funci贸n hb_readIni() a tu aplicaci贸n:

https://github.com/xHarbour-org/xharbour/blob/0420bbba08a23d9c225779bc81aaa7e510d3fdd1/source/rtl/hbini.prg#L7

Y situa x MsgInfo()s en 茅l para ver hasta donde llega y por qu茅 se sale
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion