Página 1 de 2

xHarbour Language Reference Guide Full

Enviado: 17 Dez 2007 22:05
por Marcelo Justino
Se alguem se interessar fiz um upload do reference guide que vem na demo do xharbour, esse reference guide esta completo e em ingles:

http://rapidshare.com/files/77306877/xH ... _.chm.html

tem coisas do tipo:

HB_ReadIni()
Reads an INI file from disk.

Syntax

HB_ReadIni( <cFileName> , ;
[<lCaseSens>] , ;
[<cDelimiter>], ;
[<lAutoMain>] ) --> hIniData

Arguments

<cFileName>
This is a character string holding the name of the INI file to open. It must include path and file extension. If the path is omitted from <cFileName>, the file is searched in the current directory.

<lCaseSens>
This parameter defaults to .T. (true) causing the function to return a case sensitive Hash(). When set to .F. (false), the returned hash is case insensitive.

<cDelimiter>
This is a character string holding the delimiter(s) recognized as separating character between key and value within the INI file. Bydefault, the characters ":", "=" and "|" are recognized.

<lAutoMain>
This parameter defaults to .T. (true) so that a [MAIN] section is automatically added to the resulting hash. All key/value pairs appearing at the beginning of the INI file outside a [section] are assigned to the hash key "MAIN". Return

The function returns two dimensional hash holding sections and key/value pairs of each section inthe INI file. When the file does not exist, the return value is NIL.

Description

Function HB_ReadIni() reads an INI file and loads the data into a two dimensional Hash, which is returned. INI files are commonly used for configuration data of applications. They are comfortable to use since they can be created and/or changed with a regular ASCII editor.
The basic feature of an INI file is that it organizes data in key/value pairs which can be divided into sections:

; comment line: this is the auto-MAIN section

mainKey1=mainvalue1 # inline comment
mainKey2=mainvalue2

[SECTION1]
sectionKey1=valueA
sectionKey2=valueB

[SECTION2]
sectionKey1=valueC
sectionKey2=valueD

INI file sections are named. The names are enclosed in square brackets in the INI file and are used as keys in the Hash returnd by HB_ReadIni(). The value of each [section] key is, again, a hash, making the return value a two-dimensional hash. The hashes in the second dimension contain the key=value pairs of each [section] of the INI file.

The example above shows two key=value entries at the beginning of the INI file which are not part of a named [section]. By default, HB_ReadIni() assigns such entries to the hash key named "MAIN".

Info

See also: FOpen(), FRead(), Hash(), HB_SetIniComment(), HB_WriteIni()
Category: File functions , xHarbour extensions
Source: rtl\hbini.prg
LIB: xhb.lib
DLL: xhbdll.dll

Example

// The example uses the INI file discussed in the function
// description and creates from it a case sensitive Hash.
// The key values of different sections are displayed.

PROCEDURE Main
LOCAL hIniData := HB_ReadIni( "test.ini" )

? Valtype( hIniData["MAIN"] ) // result: H
? Valtype( hIniData["SECTION1"] ) // result: H

? hIniData["MAIN"]["mainKey2"] // result: mainvalue2

? hIniData["SECTION1"]["sectionKey1"] // result: valueA
? hIniData["SECTION1"]["sectionKey2"] // result: valueB

? hIniData["SECTION2"]["sectionKey1"] // result: valueC
? hIniData["SECTION2"]["sectionKey2"] // result: valueD

RETURN

Enviado: 17 Dez 2007 22:41
por Maligno
Um link a mais é sempre bem-vindo. Mas se o arquivo for apagado (há um limite de tempo - 90 dias no RapidShare), já tenho este CHM no meu site desde agosto. Pelo menos imagino que seja o mesmo. :)

Enviado: 18 Dez 2007 08:05
por Marcelo Justino
É o mesmo arquivo sim, foi mal eu procurei mas não achei nenhuma mensagem sobre esse reference guide, acabei achando que tava fazendo um grande favor, desculpa ae. Tenho que aprender a procurar melhor. :| :|

Se possivel um Moderador apagar a mensagem para não ficar coisa repetida. Obrigado !

Enviado: 18 Dez 2007 10:41
por vailton
Senão me engano a versão DEMO não tem limite de 20 comandos e o resto é em latin ou estou enganado?

Enviado: 18 Dez 2007 10:51
por Marcelo Justino
Essa versão é TODA em inglês, sem limite de uso, já consultei varios comandos e todos estão bem detalhados e com exemplos. REALMENTE é a versão FULL. -:]

Enviado: 18 Dez 2007 12:07
por Maligno
Marcelo Justino escreveu:É o mesmo arquivo sim, foi mal eu procurei mas não achei nenhuma mensagem sobre esse reference guide, acabei achando que tava fazendo um grande favor, desculpa ae. Tenho que aprender a procurar melhor. :| :|
Imagina. Não há o menor motivo pra se desculpar. É melhor sobrar link do que faltar. Se não encontrarem uma mensagem, podem encontrar outra.
Se possivel um Moderador apagar a mensagem para não ficar coisa repetida. Obrigado !
Não tem necessidade disso.

Enviado: 18 Dez 2007 12:21
por Maligno
vailton escreveu:Senão me engano a versão DEMO não tem limite de 20 comandos e o resto é em latin ou estou enganado?
A versão demo tem essa limitação mesmo, mas não é em latim. Está "traduzido" pra uma pseudo-linguagem decorativa chamada Lorem Ipsum.

Enviado: 18 Dez 2007 17:02
por Luciano Bonfim
baixei e näo consegui usar, todo link que entro dá a sequinte mensagem:

The address is not valid

Most likely causes:
There might be a typing error in the address.
If you clicked on a link, it may be out of date.

What you can try:
Retype the address.

Go back to the previous page.

Enviado: 18 Dez 2007 17:23
por Maligno
No meu link? Se for, acabei de testar. Está correto.

Enviado: 18 Dez 2007 18:02
por Luciano Bonfim
näo no link que iniciou o tópico... vou baixar do seu...

Enviado: 18 Dez 2007 18:04
por Luciano Bonfim
baixeu do link do malígno e funcionou 100%

Enviado: 18 Dez 2007 18:10
por Maligno
Ah, sim. Às vezes o RapidShare dá problema mesmo.

Enviado: 18 Dez 2007 18:23
por Marcelo Justino
Olha testei agora e funcionou sem problemas, com mais alguem deu erro ??

Enviado: 18 Dez 2007 19:26
por Maligno
Ah, mas o RapidShare é assim mesmo. Ele vem, ele vai,... :)

xHarbour Language Reference Guide Full

Enviado: 11 Dez 2015 20:05
por microvolution
ressuscitou o "maligno" ou ou ou...
gente, nem sei se tem alguém aqui ainda... mas uma coisa é certa, ou melhor, duas:
1 - nem o rapidshare não existe mais;
2 - nem o link do "maligno" também não existe.

então, se precisar do "harbour language reference guide" ou "xharbour language reference guide" onde encontro?
vlw!!!