Search found 43 matches: substitution

Return to advanced search

Re: Inserting a string with CRLF into a single-line TGet.

All this is ok, as long as you know the text. And substitution by itself is a simple one line code. The user copies some text from some other window or application or a webpage by pressing Ctrl-C or by selecting Copy from the context And as a programmer ...
by nageswaragunupudi
Mon Dec 11, 2023 7:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Inserting a string with CRLF into a single-line TGet.
Replies: 10
Views: 897

Re: Help splitting up a character address string

... in a certain programming language syntax and outputs another text file in a different language's syntax. Features: It offers file inclusion, substitution facilities, and conditional compilation. Modularity: Harbourino enables splitting complex functions or classes into smaller, manageable ...
by Otto
Wed Nov 15, 2023 7:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help splitting up a character address string
Replies: 10
Views: 602

Re: Substitution characters

please provide an example of what you need
by Antonio Linares
Wed Aug 30, 2023 8:35 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Substitution characters
Replies: 3
Views: 215

Re: Substitution characters

Sorry, Antonio! I don't really understand how substitution characters can be used in regular expressions. I need to find a phrase in the text. This phrase is in the text, but the separators between the words may be different :(
by Natter
Wed Aug 30, 2023 8:08 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Substitution characters
Replies: 3
Views: 215

Substitution characters

Is it possible to search through a text string using substitution characters (? / *) ?
by Natter
Wed Aug 30, 2023 7:58 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Substitution characters
Replies: 3
Views: 215

FWH1905: FW_AT() Case insensitive search

... with this string. The substituted string can be shorter or longer. In this case, the 2nd parameter should be passed by reference. The search and substitution respects the parameters lWholeWord, lSkipQuotes and lAllMatches. cSearch := "ear"cString := "Year Ear Hear"nAt := FW_AT( ...
by nageswaragunupudi
Wed Jun 26, 2019 4:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH1905: FW_AT() Case insensitive search
Replies: 0
Views: 570

Re: FWHMYSQL oRs:Save() Problem

From 18.04 we stopped considering :1, :2, ....:n as variables for substitution in ApplyParams() to avaoid confusion when the string contains values like "10:10:20".
&1, &2, ...&3 can still be used as in Dolphin.

This should resolve Mr. Vilian's issue.
by nageswaragunupudi
Fri May 25, 2018 2:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWHMYSQL oRs:Save() Problem
Replies: 12
Views: 2307

Re: How to edit a EMF file

... file stores a lot more information than text and font info. In some cases alignment, kerning etc of characters may get disturbed. Example: This substitution looks quite reasonable: cBuf  := StrTran( cBuf, AnsiToWide( "City" ), AnsiToWide( "CITY" ) ) ...
by nageswaragunupudi
Thu Mar 22, 2018 4:20 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to edit a EMF file
Replies: 13
Views: 1553

Re: macro substitution & in fieldnames

Thanks,

It works! and is better for reading the code.

Learning every day..

Thanks.
by Marc Venken
Thu Oct 27, 2016 10:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: macro substitution & in fieldnames
Replies: 7
Views: 1771

Re: macro substitution & in fieldnames

Here you are: function filldbf()   Local aCustfields:={}   local cField   local uVal   local cM_field   // MEMVAR cAlias   use slave   select slave   zap   close   use DASSY NEW alias CUST   use slave NEW alias slave   use master NEW alias master   select cust   AliasCust = alias&#...
by hmpaquito
Thu Oct 27, 2016 7:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: macro substitution & in fieldnames
Replies: 7
Views: 1771

Re: macro substitution & in fieldnames

Thanks guys, With the samples I get it to work ! Macro substitution is bad: - slow (more slow than dbf field functions) - avoid compiler syntax analisys. Better harbour programming style is do not use macro substitution: Out of curiosity, You suggested ...
by Marc Venken
Wed Oct 26, 2016 11:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: macro substitution & in fieldnames
Replies: 7
Views: 1771

Re: macro substitution & in fieldnames

Marc: Look at this examples code: PADRON->(DBGOTOP()) DO WHILE !PADRON->(EOF()) IF !TMOVMES->(DBSEEK(CONCEPTO->COD+PADRON->MP,.F.)) TPADRON->(DBAPPEND()) COPIAREG('TPADRON','PADRON') ENDIF PADRON->(DBSKIP()) ENDDO FUNCTION COPIAREG(xBaseEntra,xBaseSale) Local aCampos:={},i,aDato...
by puenteda
Wed Oct 26, 2016 3:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: macro substitution & in fieldnames
Replies: 7
Views: 1771

Re: macro substitution & in fieldnames

Macro substitution is bad: - slow (more slow than dbf field functions) - avoid compiler syntax analisys. Better harbour programming style is do not use macro substitution, so: // With preprocessor  is more rapid and clear ...
by hmpaquito
Wed Oct 26, 2016 8:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: macro substitution & in fieldnames
Replies: 7
Views: 1771

Re: macro substitution & in fieldnames

Dear Marc,

I use as you did but a bit different.
Code: Select all  Expand view

RvName := 'MHS->MHS_RV'+right(dtos(MEMVAR->comdat),2)
&(RvName) += round(TRN->TRN_UNIT * TRN->TRN_QTTY,2)
 
by dutch
Wed Oct 26, 2016 7:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: macro substitution & in fieldnames
Replies: 7
Views: 1771
Next

Return to advanced search