Find Jobs
Hire Freelancers

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

$5-10 USD

Tamamlandı
İlan edilme: yaklaşık 21 yıl önce

$5-10 USD

Teslimde ödenir
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
Proje No: 2920636

Proje hakkında

9 teklif
Uzaktan proje
Son aktiviteden bu yana geçen zaman 21 yıl önce

Biraz para mı kazanmak istiyorsunuz?

Freelancer'da teklif vermenin faydaları

Bütçenizi ve zaman çerçevenizi belirleyin
Çalışmanız için ödeme alın
Teklifinizin ana hatlarını belirleyin
Kaydolmak ve işlere teklif vermek ücretsizdir
Seçilen:
Kullanıcı Avatarı
See private message.
$1 USD 14 gün içinde
5,0 (1 değerlendirme)
0,0
0,0
9 freelancers are bidding on average $7 USD for this job
Kullanıcı Avatarı
See private message.
$8,50 USD 14 gün içinde
5,0 (477 değerlendirme)
7,6
7,6
Kullanıcı Avatarı
See private message.
$3,40 USD 14 gün içinde
5,0 (551 değerlendirme)
6,7
6,7
Kullanıcı Avatarı
See private message.
$6,80 USD 14 gün içinde
4,6 (154 değerlendirme)
6,1
6,1
Kullanıcı Avatarı
See private message.
$8,50 USD 14 gün içinde
4,8 (88 değerlendirme)
5,7
5,7
Kullanıcı Avatarı
See private message.
$3,40 USD 14 gün içinde
5,0 (6 değerlendirme)
4,4
4,4
Kullanıcı Avatarı
See private message.
$8,50 USD 14 gün içinde
5,0 (8 değerlendirme)
3,7
3,7
Kullanıcı Avatarı
See private message.
$7,65 USD 14 gün içinde
4,1 (4 değerlendirme)
0,3
0,3
Kullanıcı Avatarı
See private message.
$8,50 USD 14 gün içinde
0,0 (0 değerlendirme)
0,0
0,0
Kullanıcı Avatarı
See private message.
$8,50 USD 14 gün içinde
0,0 (0 değerlendirme)
0,0
0,0

Müşteri hakkında

   UNITED STATES bayrağı
United States
5,0
114
Ara 13, 2001 tarihinden bu yana üye

Müşteri Doğrulaması

Teşekkürler! Ücretsiz kredinizi talep etmeniz için size bir bağlantı gönderdik.
E-postanız gönderilirken bir şeyler yanlış gitti. Lütfen tekrar deneyin.
Kayıtlı Kullanıcı İlan Edlien Toplam İş
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ön izleme yükleniyor
Coğrafik konum için izin verildi.
Giriş oturumunuzun süresi doldu ve çıkış yaptınız. Lütfen tekrar giriş yapın.