의사 목록 등이있는 vb.net에 포털이 있습니다. 이제 의사 테이블에서 다음과 같은 구조를 만들었습니다. (slot1MonringFrom, slot1MorningTo, slot1EveningFrom, slot1EveningTo)이 4 개 열은 월요일에만 있습니다. 7 일 모두. Mon, Wed, Thu 의사가 같은 시간에 채운 다음 페이지로드시 동일한 값을 확인하고 다음과 같은 하나의 문자열로 표시해야한다고 가정합니다 (Mon, Wed, Fri-8.00am-12.00pm). 같은 방식으로 화, thu는 동일한 시간을 가지며 (화, thu-4.00pm-8.00pm)와 같은 두 번째 문자열에 표시됩니다.
동일한 값을 확인하고 하나의 문자열로 전달하는 방법을 알고 싶습니다. 어떤 예가 주어지면 이해하기 좋을 것입니다 ..
아래와 같이 로직을 구현해보세요.
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
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다