When I'm scripting in Meditech Client Server, I never, never, never (unless I'm absolutely forced into it) read data below the second line. You would be much better off Tabbing to the field and reading the text on row 2.
Of course, there are situations where you can't Tab to a field but you have to view it (like uneditable MRN's or patient names). Usually there's an unhindered view of the text in row 3 and below, but, as in this case, not always. Perhaps the information appears on another page (go to it using Key "@_SELECT:2", or perhaps there's another application in Client Server which has it. Rich McNeil Boston Software Systems 866 653 5105 www.bostonworkstation.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joe Strauss Sent: Wednesday, September 03, 2003 12:19 PM To: '[EMAIL PROTECTED]' Subject: [Talk] Meditech CS issue I have a script that enters results into the Meditech CS result entry screens. Sometimes after the accession number gets entered on the result entry screen, a box pops up for "Specimen Comments/Queries/Markers". An "<ESC>" will get rid of the box and then the script is back on the result entry screen. The problem is that, to the scripts when it is reading data from the result entry screen, the data in the "Specimen Comments" box overwrites the data on the result entry screen. For Example when reading the patient name: The script reads the patient name off the screen like this: sLastName = Trim(.View(, , 3, 58, 25)) Normally, I would get sLastName = "Smith, John". If the "Specimen comments" box happens to be wider than 58 characters on line 3 (lets say the characters 58-60 are "123"), then when I do the screen read for sLastName after hitting "<ESC>" for the box it would get sLastName = "123th, John". Any ideas how to get around this problem? Thanks. Joe Strauss Senior Programmer Analyst Specialty Laboratories @ <www.specialtylabs.com> 310 828-6543 ext. 1240
