Search found 58 matches: substring

Return to advanced search

AYUDA Validacion LRC para datafono

... Dim s2 As String = s.Replace(" ", Nothing) For i As Integer = 0 To s2.Length - 1 Step 2 result += Convert.ToChar(Integer.Parse(s2.Substring(i, 2), System.Globalization.NumberStyles.HexNumber)) Next Return result End Function // c++ int calcularLRC(unsigned char *pi_sTrama, int ...
by russimicro
Sat Mar 30, 2024 6:03 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: AYUDA Validacion LRC para datafono
Replies: 2
Views: 483

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

Marco Augusto wrote:Quiza con la funcion AT

cCAD="abcdfe"+crlf+"12345"

cCAD2=SUBSTRING(cCAD,1,AT(CHR(10),cCAD)-1)


Can you provide a working sample?
by nageswaragunupudi
Mon Dec 11, 2023 5:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Inserting a string with CRLF into a single-line TGet.
Replies: 10
Views: 893

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

Quiza con la funcion AT

cCAD="abcdfe"+crlf+"12345"

cCAD2=SUBSTRING(cCAD,1,AT(CHR(10),cCAD)-1)
by Marco Augusto
Mon Dec 11, 2023 2:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Inserting a string with CRLF into a single-line TGet.
Replies: 10
Views: 893

Re: Help splitting up a character address string

... ' harbour' :' Help splitting up a character address string Postby Rick Lipkin » Tue Nov 14, 2023 9:29 pm To All I seem to have lost my ability to substring an Address field into seperate cStreet, cCity, cState and cZip variables ... here is a address field I want to break out into the above fields ...
by Otto
Wed Nov 15, 2023 7:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help splitting up a character address string
Replies: 10
Views: 596

Help splitting up a character address string

To All I seem to have lost my ability to substring an Address field into seperate cStreet, cCity, cState and cZip variables ... here is a address field I want to break out into the above fields cAddress := "258 Shoreline Drive, Columbia, ...
by Rick Lipkin
Tue Nov 14, 2023 9:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help splitting up a character address string
Replies: 10
Views: 596

Re: EXTRAER DATOS DE LECTOR QR

José Luis:

Tal como te dice CMSOFT, necesitas un lector de código QR, este te devolverá una cadena de texto la cual
debes descomponer o trozear con SUBSTRING() dependiendo de donde se encuentra el trozo de código
que te interesa.

Saludos
by Armando
Mon Jul 25, 2022 12:24 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: EXTRAER DATOS DE LECTOR QR
Replies: 7
Views: 617

Re: conversion of a string

... function. See the Clipper Reference Guide here: https://harbour.github.io/doc/clc53.html 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 ...
by James Bott
Fri Jan 21, 2022 6:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: conversion of a string
Replies: 2
Views: 272

Re: mariadb

cQry := "DELETE FROM cont0500" + CLRF
cQry += "WHERE SUBSTRING(bcodi,1,1)=" + ClipValue2SQL( "1" )
oCn:Execute( cQry )
by sysctrl2
Thu May 20, 2021 12:15 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: mariadb
Replies: 7
Views: 832

Re: How to implement PeekStr()

... := CallGoal( Prolog_Id_n )  , and the first such call would return something like "T 0000\r\nthe" , and you would take a substring to bypass the status part, and retrieve "the". Wow, I can't believe it. I wasn't expecting this level of completeness, just a few ...
by FWExplorer
Thu Jun 18, 2020 5:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to implement PeekStr()
Replies: 16
Views: 2009

Re: Delimiter characters

And how can I figure out how many parts to split a continuous string into ? After all, the width of each substring can be different (depending on the font)
by Natter
Fri May 01, 2020 8:08 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Delimiter characters
Replies: 4
Views: 565

Re: :Setfilter from a defined substring ?

Tested and works perfect :D :D :D

all types of vars for the filtering are covered now
and I can finish the job

Image

thank You very much

regards
Uwe :D
by ukoenig
Wed Feb 13, 2019 8:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: :Setfilter from a defined substring ?
Replies: 6
Views: 1019

Re: :Setfilter from a defined substring ?

  cFilter     := ""   if !Empty( dDate1 )      cFilter  := "HIREDATE >= " + TRANSFORM( DTOS( dDate1 ), "@R {^ 9999/99/99}" )   endif   if !Empty( dDate2 )    &...
by nageswaragunupudi
Wed Feb 13, 2019 8:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: :Setfilter from a defined substring ?
Replies: 6
Views: 1019

Re: :Setfilter from a defined substring ?

Have you tried with

my_filter = "dtos(oCust:Hiredate) >= dtos(" + ctod(dDate1) + ")"
oCust:SetFilter(my_filter)
by Massimo Linossi
Wed Feb 13, 2019 8:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: :Setfilter from a defined substring ?
Replies: 6
Views: 1019

Re: :Setfilter from a defined substring ?

May I still ask for another solution ? I need a filterstring for a date-range field Hiredate from customer.dbf defined date-vars dDate1 and dDate2 to filter a date-range that means for a empty dDate2 1) oCust:Hiredate >= dDate1 and with defined dDate1 and !empty dDate2 2) oCust:Hiredate >= dDa...
by ukoenig
Wed Feb 13, 2019 8:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: :Setfilter from a defined substring ?
Replies: 6
Views: 1019

Re: :Setfilter from a defined substring ?

Works perfect :D
thank You very much

sometimes I'm thinking to complicated :oops:

After getting cLast, you can build the filter like this:
oCust:SetFilter( "UPPER(LAST) = '" + Trim( cLast ) + "'" )


regards
Uwe :D
by ukoenig
Tue Feb 12, 2019 6:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: :Setfilter from a defined substring ?
Replies: 6
Views: 1019
Next

Return to advanced search