Search found 225 matches: inserting

Return to advanced search

Re: Problem with tget numeric

... flour and my touch cashier is the only solution but the customer doesn't want it, what should I do? he wants a simple table made with xbrowse and inserting for each line with the dialog takes the customer, fills in the types of bread and makes the delivery note
by Silvio.Falconi
Wed Jan 17, 2024 8:03 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with tget numeric
Replies: 16
Views: 1220

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

// C:\FWH/SAMPLES\CSTRING2.PRG By Mister Nages.#include "FiveWin.ch"#Define CLR_MSPURPLE   nRGB( 0,   120, 215 )FUNCTION Main()   LOCAL oDlg, oGet, oFont, oFnt, cText1, cVar := SPACE(300)   LOCAL oSay, cSayGet, oSalida   Skin...
by karinha
Tue Dec 12, 2023 12:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Inserting a string with CRLF into a single-line TGet.
Replies: 10
Views: 726

Re: add a line in the print report

... rejection. Otto, excuse me, but what do you think is the topic of my topic? Is it "I want an html printout" or "I have a problem inserting a line in the report from xbrowse"? Mr. Otto, by doing this you force everyone not to ask on the forum for help because the forum is ...
by Silvio.Falconi
Tue Dec 12, 2023 12:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: add a line in the print report
Replies: 8
Views: 399

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

1. Why write oGet1:bKeyDown :={ |k|If( k == ASC("V") .and. GetKeyState(VK_CONTROL ), Check CRL F(), ) } for each control if the method can be modified :KeyDown via Override ? With override, the change applies to all Gets and we need not write this for each Get. If you like, you can overri...
by nageswaragunupudi
Tue Dec 12, 2023 10:49 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Inserting a string with CRLF into a single-line TGet.
Replies: 10
Views: 726

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

Thank you, Rao, a good solution ! Please explain such points: 1. Why write oGet1:bKeyDown :={ |k|If( k == ASC("V") .and. GetKeyState(VK_CONTROL ), Check CRL F(), ) } for each control if the method can be modified :KeyDown via Override ? 2. Will this function work when entering data from th...
by Natter
Tue Dec 12, 2023 7:47 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Inserting a string with CRLF into a single-line TGet.
Replies: 10
Views: 726

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

Yes, you are right. I did not consider the "paste" problem, sorry.
by Enrico Maria Giordano
Mon Dec 11, 2023 8:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Inserting a string with CRLF into a single-line TGet.
Replies: 10
Views: 726

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

Hi, In the document, I select a line consisting of 2 parts separated by the characters CRLF or chr(10) and copy it to the clipboard. Next, I want to paste the information from the clipboard into a one-line TGet. However, only the first part of the phrase (before CRLF) will be inserted. How can I so...
by nageswaragunupudi
Mon Dec 11, 2023 8:00 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Inserting a string with CRLF into a single-line TGet.
Replies: 10
Views: 726

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 you do not know what text the user will copy. ...
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: 726

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

Algo asi? #include "FiveWin.ch"FUNCTION Main()   LOCAL cText, cVar   cText := "Teste1 " + CHR( 10 ) + " Teste2" + CHR( 9 ) + " Teste3 " + ;            CHR( 25 ) + CHR( 13 ...
by karinha
Mon Dec 11, 2023 6:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Inserting a string with CRLF into a single-line TGet.
Replies: 10
Views: 726

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: 726

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: 726

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

Just replace (using STRTRAN()) CRLF with a space or something else you like.
by Enrico Maria Giordano
Mon Dec 11, 2023 2:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Inserting a string with CRLF into a single-line TGet.
Replies: 10
Views: 726

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

Hi, In the document, I select a line consisting of 2 parts separated by the characters CRLF or chr(10) and copy it to the clipboard. Next, I want to paste the information from the clipboard into a one-line TGet. However, only the first part of the phrase (before CRLF) will be inserted. How can I sol...
by Natter
Mon Dec 11, 2023 11:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Inserting a string with CRLF into a single-line TGet.
Replies: 10
Views: 726

Re: copy a row of xbrowse

Silvio, You must search the selected and aadd( oBrw:aArrayData,aCopy ) each selected row. Then inserting: FOR I:= 1 to len(aCopy ) Regards, Otto Please try this test #include "fivewin.ch"static aCopystatic cItemFlds :="CodSep,Top,Left,Width,Height,desc,row,recno()" REQUEST ...
by Silvio.Falconi
Tue Dec 05, 2023 12:00 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5594

Re: copy a row of xbrowse

Silvio,

You must search the selected and
aadd( oBrw:aArrayData,aCopy )
each selected row.

Then inserting: FOR I:= 1 to len(aCopy )


Regards,
Otto
by Otto
Tue Dec 05, 2023 10:21 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5594
Next

Return to advanced search