Home > database >  Pb9 mswinsck. Ocx problem
Pb9 mswinsck. Ocx problem

Time:10-07

With pb mswinsck controls connect a medical device HL7 protocol, the debugger when the debug can take transmission of data, not to be able to directly run the program to transmit, mystery, including log writing code, can query to the data source in the folder log is to come over, please people

String ls_receiver ls_data, ls_temp ls_graphall, ls_graph, ls_outdata, ls_xx
String lns_string []
Long ll_num ll_i, ll_at ll_length, ll_j
String ls_sour1 ls_sour2, ls_sour3

Winsock. Object. GetData (ref ls_receiver)

Is_tempstr=ls_receiver
//messagebox (' is_tempstr 'is_tempstr)


IF cbx_1. Checked THEN
Gf_write_log (is_deviceid, 'the receive - & gt; '+ ls_receiver)
END the IF



//warehousing
If pos (is_tempstr, 'M') & gt; 0 then
Insert into l_source (soufull deviceid, ComputerName) values (: is_tempstr, : is_deviceid, : Gs_ComputerName);
Commit;
Gf_write_log (is_deviceid + '- the original, is_tempstr)//write source data log
Is_tempstr='//empty
end if

CodePudding user response:

Look at your code should only if pos (is_tempstr, 'M') & gt; 0 then may have a problem here, the returned data does not necessarily have capital M

CodePudding user response:

reference 1st floor WMERP response:
look at your code should only if pos (is_tempstr, 'M') & gt; 0 then may have a problem here, the returned data does not necessarily have capital M

No problem, here I debug have M value, is the single step debug no problem, is to run the program directly when they don't come to the data

CodePudding user response:

PB should not appear on principle of android function after the operation without completes directly into the code, you can output on the page Settings there and see if it is waiting for the execution and put ls_receiver="" then winsock Object. The GetData (ref ls_receiver) before joining a datetime to output text box 1, winsock. Object. The GetData (ref ls_receiver) after joining a datetime output to a text box 2, to write a do while ls_receiver=" "Yield ()

Loop add to join a datetime output to a text box 3, see if wait for finish to execute, if not, you need to wait for the

CodePudding user response:

Later changed the winsock dataarrival event yesterday a code used to be a pos (is_temp, 'M') later changed to pos (is_temp, char (77))

CodePudding user response:

Shows that there is data in the log?

CodePudding user response:

The original poster can mean when the DEBUG step by step implementation, let the runtime execution, there is no data automatically and continuously, should is winsock Object. The GetData (ref ls_receiver) asynchronous execution, not waiting for the results ls_receiver back and ran down,

CodePudding user response:

HL7 protocol to transmit data is not necessarily at the same time came the
You according to the terminator to judge the integrity of the data, data are not complete, have a problem
  • Related