I think you can add this to your script and it will handle any of these
special characters, including the %
In the main part of your script you will need to replace the field name
as such:
Enter SpecialCharacters(D("field name goes here"))
Function SpecialCharacters(inputText As String) As String
'group your special character codes together and run this string of code
'substitute your field name as such:
'Enter SpecialCharacters(D("field name goes here"))
Dim strOutput As String
Dim strChar As String
Dim intLoop As Integer
strOutput = Replace(inputText, "%", "%%")
strOutput = Replace(strOutput, "^", "^^")
strOutput = Replace(strOutput, "+", "++")
SpecialCharacters = strOutput
End Function
Vicky L. Moore, BS, MT(ASCP)
Quest Diagnostics | Hospital CPU Interface Specialist, Customer
Interface Services | 1777 Montreal Circle | Tucker, GA 30085 USA |
phone +1.678.406.1777 -or- +1.866.709.0772 opt1, ext1777 | fax
+1.484.676.8628| [email protected] |
www.QuestDiagnostics.com <http://www.questdiagnostics.com/>
P Please think about resource conservation before you print this message
I will be out of the office beginning Thursday February 7th returning
on Monday February 11th , 2013.
From: [email protected] [mailto:[email protected]]
Sent: Friday, January 25, 2013 4:17 PM
To: [email protected]
Subject: RE: [talkbws] My Meditech 6 isn't accepting a percent sign (%)
as part of a string of text
Hi:
You can use the Replace function to fix this. Just change the
D("FieldName") in the line below to the field / variable you have in
your script.
Replace(D("FieldName"), "%", "%%")
Thanks
Betsy Valanti
Sr. Programmer Analyst
Information Technology
Halifax Health
(386) 254-4116 x 11177
[email protected]
________________________________
From: [email protected] [mailto:[email protected]]
Sent: Friday, January 25, 2013 4:11 PM
To: [email protected]
Subject: [talkbws] My Meditech 6 isn't accepting a percent sign (%) as
part of a string of text
I'm scripting in some values in the Pharmacy Drug dictionary. Some of
the mnemonics have a percent sign in them (i.e. LIDI.5%) No matter
where the sign is in the string it just skips it. I've tried putting it
by itself in quotes, or expressing it as an ASCII character, but it
still won't cooperate. Has anyone tamed this yet?
Shirley Hammack, I.T. Financial Analyst
Duncan Regional Hospital
Duncan, Oklahoma
580-251-8939
--- To post a message to this list, send mail to: [email protected]
You are currently subscribed as: [email protected]
Unsubscribe in the customer center on our website:
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk
.aspx
--- To post a message to this list, send mail to: [email protected]
You are currently subscribed as: [email protected]
Unsubscribe in the customer center on our website:
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk
.aspx
______________________________________________________________________
The contents of this message, together with any attachments, are intended only
for the use of the person(s) to which they are addressed and may contain
confidential and/or privileged information. Further, any medical information
herein is confidential and protected by law. It is unlawful for unauthorized
persons to use, review, copy, disclose, or disseminate confidential medical
information. If you are not the intended recipient, immediately advise the
sender and delete this message and any attachments. Any distribution, or
copying of this message, or any attachment, is prohibited.
--- To post a message to this list, send mail to: [email protected] You are
currently subscribed as: [email protected] Unsubscribe in the
customer center on our website:
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx