Page 2 of 2

Re: How pulling data from TCP Connection?

Posted: Wed Sep 05, 2018 3:02 am
by gilar
Klaus wrote: Tue Sep 04, 2018 9:17 pm Hi Gilar,
hm, I really like to help, but don't you think that this is going a bit too far for a "little help in the forum"?
I ususally do this kind of work, and what you ask for is a bit more complex than my other script, for a living, means for money!
Hi Klaus ... you help me much and detil
Now my work has gone far ahead
Thanks a lot.
Hints:
Extract the NAME from tData and look for this name in the data of the datagrid -> tDGT
Maybe with lineoffset, then do your thing with the found line if any, means update the ITEMS of that line with the new number of laps etc. before writing the data back into the datagrid.

All this should happen in my "put_into-datagrid" handler, of course!
Ok... i'll try again.. thanks for the clue
Love this forum :)


Best Regards


Gilar Kadarsah

Re: HOw pulling data from TCP Connection?

Posted: Wed Sep 05, 2018 3:30 am
by gilar
jiml wrote: Tue Sep 04, 2018 11:54 pm Gilar,

You might want to use an array variable in memory to store the most recent data for each racer.
For example when this is received:
Hi jiml ... Thank you for visiting my thread
thanks a lot for the advice, it give me another option to solve the problem

Can we not to put racer name on the script,
Can we just mention the item which mean the racer name
because in a day we have about 7 race and every race has 20-30 different racer
and it seem i have no enaugh time to input all racer name into the script.

i just thinking the logic
when passing sent into the "LOG"
then livecode create script which do ....
if in the dataGrid has this data then just update/replace item 3 and item 4 on the DataGrid
this data mean ...

Code: Select all

13A;OKTAVIANO RIZQY;1;33393
13A=item 1
OKTAVIANO RIZQY=item 2
1=item 3
33393 = item 4

Unfortunatelly, i dont know what code i have put to do this job.
Do you have any clue maybe?
Now i'm trying with Klaus's clue

Best Regards


Gilar Kadarsah

Re: HOw pulling data from TCP Connection?

Posted: Wed Sep 05, 2018 11:08 am
by Klaus
gilar wrote: Wed Sep 05, 2018 3:30 am... Klasus's ...
AAAAAAAAAAAAAAAAAARGHHHHHHHHH!
:D :D :D

Re: HOw pulling data from TCP Connection?

Posted: Wed Sep 05, 2018 12:29 pm
by gilar
Klaus wrote: Wed Sep 05, 2018 11:08 am
gilar wrote: Wed Sep 05, 2018 3:30 am... Klasus's ...
AAAAAAAAAAAAAAAAAARGHHHHHHHHH!
:D :D :D
Oh... my God... typo again...
Really sorry.

Re: HOw pulling data from TCP Connection?

Posted: Wed Sep 05, 2018 12:59 pm
by bogs
gilar wrote: Wed Sep 05, 2018 12:29 pm
Klaus wrote: Wed Sep 05, 2018 11:08 am
gilar wrote: Wed Sep 05, 2018 3:30 am... Klasus's ...
AAAAAAAAAAAAAAAAAARGHHHHHHHHH!
:D :D :D
Oh... my God... typo again...
Really sorry.
Don't be, he makes them all the time. Besides, we just clap to bring him back out of it :D :D

Re: HOw pulling data from TCP Connection?

Posted: Wed Sep 05, 2018 3:58 pm
by jiml
if in the dataGrid has this data then just update/replace item 3 and item 4 on the DataGrid
see FindIndex and dgDataOfIndex in the Dictionary.

Jim Lambert

Re: HOw pulling data from TCP Connection?

Posted: Sun Sep 09, 2018 4:54 am
by gilar
jiml wrote: Wed Sep 05, 2018 3:58 pm
if in the dataGrid has this data then just update/replace item 3 and item 4 on the DataGrid
see FindIndex and dgDataOfIndex in the Dictionary.

Jim Lambert
Hi Jim ... tahnks for the advice



Best Regards


Gilar Kadarsah