hb_L - Petewg/harbour-core GitHub Wiki
-
hb_langErrMsg(
<nErrorCode>
) ➜ cErrorMessage
return the error message associated with an error code using the current language selected.<nErrorCode>
is one of the generic error codes (EG_...) defined in error.ch -
hb_langMessage(
<nMsg>[, <cLangID>]
) ➜ cMessage
returns the (international) text associated with the code<nMsg>
. Parameter<cLangID>
is an optional language module ID; if not specified the currently selected language module is used. It is similar toNationMsg()
but gives access to the whole list of language messages: Day and month names, generic error messages, internal errors, and others... -
hb_langName(
[<cLangID>]
) ➜ cLangName
returns the name of the language module in use or specified. -
hb_langNew(
<cNewLangId>, <cNewLangCpId>, <cLangId>, <cLangCpId>
) ➜ lOK dynamically creates new lang module, translating an existing one then registers it. (for usage example, see Harbour's ChangeLog.txt). -
hb_langSelect(
[<cLangID>][, <cCodepage>]
) ➜ cOldLangID
sets<cLangID>
as default language module for national messages like date/month names, internal warnings and errors, etc. Before calling the function, the language module<cLangID>
must have been REQUESTed (e.g.: REQUEST HB_LANG_PT , for Portuguese), otherwise RTE occurs.<cCodepage>
is the optional code-page ID into which the language module strings will be automatically converted (encoded) by Harbour.
Returns the previous language ID setting.# Display name Lang ID # Display name Lang ID 01 Basque eu 20 Indonesian id 02 Belorussian be 21 Italian it 03 Bulgarian bg 22 Korean ko 04 Catalan ca 23 Latvian lv 05 Chinese Traditional zh 24 Lithuanian lt 06 Chinese Simplified zh_sim 25 Polish pl 07 Croatian hr 26 Portuguese pt 08 Czech cs 27 Portuguese (Brazil) pt_BR 09 Dutch nl 28 Romanian ro 10 Esperanto eo 29 Russian ru 11 Estonian ee 30 Serbian (cyrillic) sr_cyr 12 French fr 31 Serbian (latin) sr_lat 13 Galician gl 32 Slovak sk 14 German de 33 Slovenian sl 15 German-Austria de_AT 34 Spanish es 16 Greek el 35 Spanish (Latin America) es_419 17 Hebrew he 36 Swedish sv 18 Hungarian hu 37 Turkish tr 19 Icelandic is 38 Ukrainian uk
-
hb_LeftEq(
<cString>, <cSubString>
) ➜ lEqual
returns .T. when all characters (with the given order) of<cSubString>
matching to leftmost (same length) part of<cString>
. Basically it's equivalent to:( Left( <cString1>, Len( <cString2> ) ) == <cString2> )
, but faster and shorter. Can be used f.e. to check if<cString>
begins with<cSubString>
. NOTE: Case sensitive! -
hb_LeftEqI(
<cString>, <cSubString>
) ➜ lEqual
returns .T. when all characters (with the given order) of<cSubString>
matching to leftmost (same length) part of<cString>
. Same as 'hb_LeftEq()' but case insensitive!
(just started...)
s'n'r
- hb_libError()
- hb_libExt()
- hb_libFree()
- hb_libGetFunSym()
- hb_libLoad()
- hb_libName()
- hb_libPostfix()
- hb_libPrefix()
- hb_libSuffix()