2016-03-19 9 views
0

vb.net'de portalın bulunduğu bir portal var. Artık doktorlarımın masalarımdaki gibi (slot1MonringFrom, slot1MorningTo, slot1EveningFrom, slot1EveningTo) sadece 4 gün için bu sütunlar şimdi 7 gün boyunca farklı sütunlarım var. Farz edelim ki Pzt, Çar, Per doktorlar aynı anda doldurduktan sonra sayfa yüklenirken aynı değerleri kontrol etmeliler & bunu tek bir dizede (Mon, Çar, Cum - 8.00 - 12.00pm) göster. Aynı şekilde, aynı zamana sahip olur, o zaman ikinci dizgede gösterilir (tue, thu - 4.00pm - 8.00pm).onpage yük değerleri aynı veri için değerleri gözden geçirip tek bir dizede gösterme

Sadece aynı değerler için nasıl denetleyebileceğimi bilmek istiyorum & bir dizeyle ilet. Herhangi örnek .. anlamak iyi olurdu verilirse

cevap

0

, aşağıda mantığını uygulamak için deneyin

Dim check1 as boolean = true 
Dim check2 as boolean = true 
Dim check3 as boolean = true 
Dim check4 as boolean = true 
Dim check5 as boolean = true 
Dim check6 as boolean = true 
Dim check7 as boolean = true 


''''SLOT 1 CHECKING 

check1=false 
'compare slot1 variables with slot2, if matched, 
    'check2=false, contact slot1 and slot2 

'compare slot1 variables with slot3, if matched, 
    'check3=false, contact slot1 and slot3 

'do same for slot4, slot5, slot6, slot7 

---------- 

''''SLOT 2 CHECKING 

'if check2=true 
    'if check3=false 
     'compare slot2 variables with slot3, if matched, 
      'check3=false, concate slot2 and slot3 

    'do same for slot4, slot5, slot6, slot7 

-------- 

''''SLOT 3 CHECKING 
'if check3=true 
. 
. 
. 
. 
. REPEAT SAME FOR ALL 
İlgili konular