Search found 30 matches: bread

Return to advanced search

Re: Problem with tget numeric

... 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: 1432

Re: Problem with tget numeric

... @ 70, 20 GET aGet[1] VAR cTop OF oDlg SIZE 32, 12 PIXEL FONT oFont PICTURE "99.99" I need the tget controls to enter data quickly, in a bread wholesale application where the operator must enter orders for each shop, supermarket, department store in the city and 4 codes are connected ...
by Silvio.Falconi
Tue Jan 16, 2024 9:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with tget numeric
Replies: 16
Views: 1432

Re: Harbour CGI

... years to discover it, but thanks God, that light came in and the way was revealed... modharbour CGI or simply Harbour CGI is the best after the bread and butter. Now you can come and blame me: "Antonio you fooled us for several years" and you are right. I have changed my ideas many ...
by Antonio Linares
Fri Sep 23, 2022 4:41 am
 
Forum: mod_harbour
Topic: Harbour CGI
Replies: 19
Views: 6174

Issue with TSOCKET()

... := "" oSocketArray[nBridge] := TSocket():New(UniPort) mTimer := 0 UniWinSocket := oSocketArray[nBridge]:nSocket oSocketArray[nBridge]:bRead = { | oSocket | mUniWinInput := oSocket:GetData() } // Never use a MsgInfo() here because it hangs Windows!!! oSocketArray[nBridge]:bConnect = ...
by paulrogers
Tue Jan 13, 2015 11:28 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Issue with TSOCKET()
Replies: 3
Views: 693

Re: Sockets write & read question

... oSocket:SendData and then oSocket:bAccept = { | oSocket | oClient := TSocket():Accept( oSocket:nSocket ),; oClient:Cargo := ST_COMMAND,; oClient:bRead := { | oSocket | OnRead( oSocket ) },; oClient:bClose := { | oSocket | OnClose( oSocket ) } } oSocket:Listen() But I was maybe thinking that oSocket:SendData ...
by Marc Vanzegbroeck
Mon Jun 16, 2014 8:25 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Sockets write & read question
Replies: 3
Views: 586

Re: Ayuda con comunicacion TCP IP

... Local oSocket oSocket:= TSocket():New( 997 ) && Aca creo el socket, el puerto (997) deberia decirtelo el que desarrollo el server. oSocket:bRead:= { | oSocket | VerResSer(oSocket:GetData()) } && Este es el evento de lectura, aca recibe la respuesta oSocket:Connect( "192.168.0.150" ...
by Jorge Jaurena
Tue Dec 20, 2011 12:21 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda con comunicacion TCP IP
Replies: 5
Views: 2875

Re: Ayuda con TSocket()

Jorge,

Revisa los ejemplos en FWH\samples sockserv.prg y sockcli.prg para que veas como se realiza la comunicación entre el cliente y el servidor.

Los datos llegan por eventos, y para que te lleguen debes hacer:

oSocket:bRead = { | oSocket | MsgInfo( oSocket:GetData() ) }
by Antonio Linares
Sat Nov 12, 2011 3:19 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda con TSocket()
Replies: 1
Views: 417

Re: Sockets

Jeff,

No sera esta linea ?
oSocket:bRead = { | oSocket | oSocket:GetData }


Q te faltan los parentesis de funcion ?

Code: Select all  Expand view
     oSocket:bRead    = { | oSocket | oSocket:GetData()  }
by Carles
Fri Jun 10, 2011 6:35 am
 
Forum: FiveWin for Pocket PC
Topic: Sockets
Replies: 11
Views: 3851

Ayuda con socket - Solucionado

... function Client( oBtn1, oBtn2, oBtn3, oBtn4 ) oSocket = TSocket():New( 2000 ) oSocket:bRead = { | oSocket | MsgInfo( oSocket:GetData() ) } // Never use a MsgInfo() here because it hangs Windows!!! oSocket:bConnect = { || oBtn1:Disable(), ...
by russimicro
Sun Oct 31, 2010 4:28 pm
 
Forum: FiveWin para Pocket PC
Topic: Ayuda con socket - Solucionado
Replies: 0
Views: 646

Re: Problem with oSocket:bRead

Can I use oSocket:OnRead instead of oSocket:bRead ?

Regards,
Dutch
by dutch
Wed Apr 14, 2010 11:23 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with oSocket:bRead
Replies: 1
Views: 350

Problem with oSocket:bRead

Dear All, I've got the problem with TSocket. When I send the data to another program and must wait for answer but it send to oSocket:bRead. When I send the data, it is in the mainloop (oTimer) but it answer in another routine. How can I get this data? I try to add received data to public ...
by dutch
Wed Apr 14, 2010 10:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with oSocket:bRead
Replies: 1
Views: 350

Re: Big problem : oSocket:OnRead and oSocket:bRead ?

Dutch, Imagine this example: 1) I tell you to go somewhere and get an envelope for me. 2) You go there, get the envelope and return it to me. 3) Again I ask you to go for a new envelope. etc A common error is: 1) I tell you to go somewhere and get an envelope for me. 2) You go and get the envelope, ...
by Antonio Linares
Wed Dec 02, 2009 1:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Big problem : oSocket:OnRead and oSocket:bRead ?
Replies: 4
Views: 807

Re: Big problem : oSocket:OnRead and oSocket:bRead ?

Dutch,

You should only read data when Windows tell you so, and it tells it to you invoking bRead.

So you should not wait for new data inside OnRead. That is a common mistake because this process is not properly understood.
by Antonio Linares
Wed Dec 02, 2009 1:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Big problem : oSocket:OnRead and oSocket:bRead ?
Replies: 4
Views: 807

Re: Big problem : oSocket:OnRead and oSocket:bRead ?

Dear Antonio, I don't know what I understand is correct or not? case 1. when unexpected data, We will use ::bRead routine. ?? case 2. when expected data, (after we send request *inquiry*) and it will send data back. We will use ::OnRead() ?? case 3. on 2nd case expected data ...
by dutch
Wed Dec 02, 2009 11:46 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Big problem : oSocket:OnRead and oSocket:bRead ?
Replies: 4
Views: 807

Re: Big problem : oSocket:OnRead and oSocket:bRead ?

Dutch,

bRead is evaluated when new data arrives, then OnRead() reads the arrived data.

So the sequence is:

Event (new data arrives) --> We proceed to read the arrived data --> once all expected data has arrived then you may send an acknowledge
by Antonio Linares
Wed Dec 02, 2009 8:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Big problem : oSocket:OnRead and oSocket:bRead ?
Replies: 4
Views: 807
Next

Return to advanced search