Search found 182 matches: cstring

Return to advanced search

Re: creating a new function HtmlToRtf()

... and it is working fine. https://github.com/jgm/pandoc/releases/tag/3.1.12 what...? I do not understand ? my HTMLTORTF function takes the generated cstring and converts it to rtf I don't know how to convert the tag for tables and links cTemp := StrTran(cTemp, "<table border='1'>", ...
by Silvio.Falconi
Fri Feb 16, 2024 11:31 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: creating a new function HtmlToRtf()
Replies: 3
Views: 287

Re: Incorrecto numero de argumento para AT

carito wrote:Hola creo que estas usando mal el comando:

en clipper es AT(<cSearch>, <cTarget>) --> nPosition

en harbour es hb_At( <cSearch>, <cString>, [<nStart>], [<nEnd>] ) --> nPos

Saludos,
Carito


Tenias razon. gracias.
by goosfancito
Wed Jan 17, 2024 5:32 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Incorrecto numero de argumento para AT
Replies: 2
Views: 208

Re: Incorrecto numero de argumento para AT

Hola creo que estas usando mal el comando:

en clipper es AT(<cSearch>, <cTarget>) --> nPosition

en harbour es hb_At( <cSearch>, <cString>, [<nStart>], [<nEnd>] ) --> nPos

Saludos,
Carito
by carito
Wed Jan 17, 2024 3:32 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Incorrecto numero de argumento para AT
Replies: 2
Views: 208

function to create a string

Is there a function to save a string like "30/60/90" from an array?

i.e. to create an array I made aData := hb_ATokens(cString,"/")

Does the reverse function exist?
by Silvio.Falconi
Tue Dec 12, 2023 1:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: function to create a string
Replies: 6
Views: 474

Re: show a string into xbrowse

Simpler way is: oCol:cEditPicture := "###gg" run only the last element https://i.postimg.cc/jqckNKDN/kio.png sample cstring:= "30/60/90" aData := hb_ATokens(cString,"/") @ 10, 5 XBROWSE oBrw OF oDlg ; COLUMNS 1,2; HEADERS "gg","" ...
by Silvio.Falconi
Tue Dec 12, 2023 10:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: show a string into xbrowse
Replies: 4
Views: 410

Re: String in unicode

This is a UTF8 encoded string. You can use HB_UTF8LEN( cString ) to find the number of characters (not bytes) and HB_UTF8SUBSTR( cString, n, 1 ) to get the nth character (not byte) Example: Let us take a sample string in Hex: "41C39CC49EE0B095". ...
by nageswaragunupudi
Thu Nov 16, 2023 6:23 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: String in unicode
Replies: 6
Views: 471

Re: I have a question. Please help.

Dear Yun,

FWH provides the function nStrCrc( cString ) --> nCrc

also function nFileCrc( cFileName ) --> nCrc
by Antonio Linares
Fri Oct 20, 2023 8:49 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: I have a question. Please help.
Replies: 2
Views: 231

Re: xHarbour.org updated!

... oDlg ACTION oDlg:End() CANCEL ACTIVATE DIALOG oDlg CENTERED Return nil FUNCTION WebPageSource(cUrl) local oIE,cTXT,cHTML,cMemo:="" local cString LOCAL cString1,cString2 LOCAL oUrl, oCli,lOk DEFAULT cUrl := "https://www.bcv.org.ve" BEGIN SEQUENCE oUrl = TUrl():New( cUrl ) IF ...
by wartiaga
Mon Sep 18, 2023 7:22 pm
 
Forum: WhatsNew / Novedades
Topic: xHarbour.org updated!
Replies: 156
Views: 37536

Re: save to inifile

Now I'm trying to make cString_TH:= GetIni( cInifile, cSection,"TH", "" ) IF ! empty(cString_TH) cToken := StrToken(cString_TH,1,";") acSizes[1] := StrToken(cToken,1,"|") acEstilo[1] := StrToken(cToken,2,"|") acSpaces[1] := StrToken(cToken,3,"|&...
by Silvio.Falconi
Mon Oct 10, 2022 11:07 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: save to inifile
Replies: 7
Views: 745

Re: Extracting the lines from a text

Thanks Jimmy. Seems Harbour's documentation is a bit different than what I got from xHarbour Language Reference 1.1 HB_ATokens( <cString> , ; [<cDelimiter>] , ; [<lSkipQuotes>] , ; [<lDoubleQuotesOnly>] ) --> aTokens <cDelimiter> A single character can be ...
by hua
Mon Sep 26, 2022 7:00 am
 
Forum: Utilities / Utilidades
Topic: Extracting the lines from a text
Replies: 4
Views: 765

Re: Extracting the lines from a text

... it https://github.com/Petewg/harbour-core/wiki/hb_A#hb_atokenscstring-cdelimiterleol-lskipstrings-ldoublequoteonly--atokens hb_ATokens(<cString>, [<cDelimiter>|lEOL], [<lSkipStrings>], [<lDoubleQuoteOnly>]) ➜ aTokens returns an array filled with all individual tokens ...
by Jimmy
Mon Sep 26, 2022 3:50 am
 
Forum: Utilities / Utilidades
Topic: Extracting the lines from a text
Replies: 4
Views: 765

Re: conversion of a string

... Note that you can look for a substring and do a replace with another string using this function. cString:= StrTran(cString," ,", ",") The above looks for any leading spaces followed by a comma and replaces them with just the ...
by James Bott
Fri Jan 21, 2022 6:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: conversion of a string
Replies: 2
Views: 272

AT( ) Function. Harbour vs xHarbour

I'm working with some legacy code orignially developed with xHarbour. The AT() function in xHarbour has this syntax: At( <cSearch>, <cString>, [<nStart>], [<nEnd>] ) --> nPos Using Harbour, AT() only supports the first two parameters and will error if the nStart is ...
by TimStone
Fri Feb 12, 2021 11:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: AT( ) Function. Harbour vs xHarbour
Replies: 1
Views: 306

Re: using regular expressions

modpro.prg bug detected and fixed ;-)

We should never do hb_urlDecode( hb_urlDecode( cString ) ) as "+" signs will vanish away !!!
by Antonio Linares
Sat Aug 22, 2020 11:28 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: using regular expressions
Replies: 10
Views: 1236

Re: Error en FW_TransLang

Ernesto, prueba de esta manera, antes de enviarlo. cString := StrTran( cString, CRLF, "####" ) cString := StrTran( cString, Chr( 10 ), CRLF ) cString := StrTran( cString, "####", CRLF ) Aunque creo que el problema es que han actualizado ...
by cnavarro
Mon Jun 29, 2020 9:43 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error en FW_TransLang
Replies: 11
Views: 1398
Next

Return to advanced search