Find Jobs
Hire Freelancers

VB6 code to sort a list of items from a text box

$5-10 USD

Завершено
Опублікований about 21 years ago

$5-10 USD

Оплачується при отриманні
I have a list of codes in my database for this client that tells me the clients diagnoses. The list has all diagnoses this person has had and might be something like this: 250.9 777.5 780.2 778.4 401.9 454.3 Next, I have a textbox that some or all these codes may appear. Here is an example of the data in text1: # SYNCOPE AND COLLAPSE (780.2): doing well. on aspirin. sugar getting controlled. Taking sugars and "has finally learned". Feeling watching diet correlates well with sugar values she has been getting. # HYPERTENSION NOS (401.9): bp stable to day. Cont off ccb due to junctional breadycardia and syncope. # Diabetes mellitus, II, with complications (250.9): seems to be controlled. She prefers not to change regimen at this time, and I concur. Had flu shot this year. As you can see, only some of the codes in the text are in the list, and they do not necessarily appear in the same order. What I need, is some simple code to allow me to figure out the order of codes as they appear in the textbox called txtASS. In other words, I want to be able to put: 780.2 into a new textbox called txtICD(0) 401.9 into txtICD(1) 250.9 INTO txtICD(2) see the deliverables section for more details... ## Deliverables and if there were more codes in the text, I would want to continue adding them (there is a max of 8 text boxes). In the end, I need my txtICD array to contain the codes IN THE ORDER IN WHICH THEY APPEAR IN THE TEXT BOX. I can get them listed, just not in the right order. In otherwords, my current code searches for the code in parenthesis and sees if it matches the list. If it does, it needs to save the code. The trouble I'm having is sorting the data into the correct txtICD Array order. This is what I've got so far... 'collect the diagnoses from the database for the client in question Dim cnnProb As [login to view URL] Dim sqlDx As String Dim rsProb As [login to view URL] Dim IsPresent As Integer sqlDx = "SELECT [login to view URL], [login to view URL] From ListPROBLEM Where patientID= " & lblPatID & "" Set cnnProb = New [login to view URL] [login to view URL] = g_ADOstrCnn [login to view URL] Set rsProb = GetRecordSet(cnnProb, sqlDx) With rsProb While Not [login to view URL] 'loop through all of the records returned in data1 'look for the number and include it if present If Not IsNull(!ProblemICD) Then ' txtselecteditem = !ProblemICD IsPresent = InStr(txtAss, !ProblemICD) If IsPresent > 0 Then 'add to problem text box and to hidden txticd array txtICDsDiscussed = txtICDsDiscussed & !ProblemName & " (" & !ProblemICD & ")" & vbCrLf txtICD(i) = !ProblemICD i = i + 1 'to avoid writing over this box next time around End If End If .MoveNext Wend End With Set cnnProb = Nothing Set rsProb = Nothing I'm looking for a quick solution, well commented, and inexpensive. I only will consider a demo that shows this in action, since I've been burned a number of times wasting time on folks who tell me how good they are, then can't do the job right. Thanks! 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Complete ownership and distribution copyrights to all work purchased. ## Platform windows
ID проекту: 2920636

Про проект

9 пропозицій(-ї)
Дистанційний проект
Активність 21 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
Доручений:
Аватарка користувача
See private message.
$1 USD за 14 дні(-в)
5,0 (1 відгук)
0,0
0,0
9 фрілансерів(-и) готові виконати цю роботу у середньому за $7 USD
Аватарка користувача
See private message.
$8,50 USD за 14 дні(-в)
5,0 (477 відгуки(-ів))
7,6
7,6
Аватарка користувача
See private message.
$3,40 USD за 14 дні(-в)
5,0 (551 відгуки(-ів))
6,7
6,7
Аватарка користувача
See private message.
$6,80 USD за 14 дні(-в)
4,6 (154 відгуки(-ів))
6,1
6,1
Аватарка користувача
See private message.
$8,50 USD за 14 дні(-в)
4,8 (88 відгуки(-ів))
5,7
5,7
Аватарка користувача
See private message.
$3,40 USD за 14 дні(-в)
5,0 (6 відгуки(-ів))
4,4
4,4
Аватарка користувача
See private message.
$8,50 USD за 14 дні(-в)
5,0 (8 відгуки(-ів))
3,7
3,7
Аватарка користувача
See private message.
$7,65 USD за 14 дні(-в)
4,1 (4 відгуки(-ів))
0,3
0,3
Аватарка користувача
See private message.
$8,50 USD за 14 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
See private message.
$8,50 USD за 14 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0

Про клієнта

Прапор UNITED STATES
United States
5,0
114
На сайті з груд. 13, 2001

Верифікація клієнта

Дякуємо! Ми надіслали на вашу електронну пошту посилання для отримання безкоштовного кредиту.
Під час надсилання електронного листа сталася помилка. Будь ласка, спробуйте ще раз.
Зареєстрованих користувачів Загальна кількість опублікованих робіт
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.