Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21096

[RESOLVED] typing out abreviated text

$
0
0
I have a file being read line by line that contains short 3 letter labels i want to expand them to full words Im assuming it would be some form of the mid function to replace the letters but i dont quite know how to use it. Here is the code i have:
Code:

Open "a:\vxdata.txt" For Input As #1
Open "C:\Test\Patient.htm" For Append As #2
Do While Not EOF(1)
    Line Input #1, LineOfText
   
            Print #2,
    Print #2, LineOfText
Loop

#1 is in this form
Quote:

DOS:07-28-08
MAS:MARRIAMA
BPH:JOEL C. ANG, M.D.
CPH:
MIC:272.0
MDX:HIGH CHOLESTEROL
ONS:02-08-06
SIC:796.2
SDX:HIGH BLOOD PRESSURE
FUN:
NXA:2MO
NPH:JA
PLA:EKG
OAP:
COM:
I want it to read each line and where it has MAS replace it with Medical Assistant, MDX replace with primary diagnosis, and soforth.

How would i go about doing this?

Viewing all articles
Browse latest Browse all 21096

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>