Loading ...
Sorry, an error occurred while loading the content.

Re: [indoprog-vb] mengatasi error

Expand Messages
  • Liliek Istyantho
    hrsnya seperti ini : If Option1.value = True  Then  If tampung(1, 1) = t And tampung(1, 2) = o And  tampung(1, 3) = l And tampung(1, 4) = o And
    Message 1 of 6 , Nov 14, 2012
    • 0 Attachment
      hrsnya seperti ini :

      If Option1.value = True  Then

       If tampung(1, 1) = "t" And tampung(1, 2) = "o" And  tampung(1, 3) = "l" And tampung(1, 4) = "o" And tampung(1, 5) = "n"  And tampung(1, 6) = "g"  Then
      seharusnya disini ada proses 
       ElseIf  tampung(2, 1) = "t" Or tampung(2, 1) = "c" Or  tampung(2, 1) = "s" Or (tampung(2, 1) = "p" And tampung(2, 4) = "l") Then  (noted : kurung tutup dibelakang l didpn then untuk apa ya?)
       proses
       End If
       Else
       If tampung(1, 1) = "t" Or tampung(1, 1) = "c" Or tampung(1, 1) = "s" Or (tampung(1, 1) = "p" And tampung(1, 4) = "l")  Then
       proses
       End If
       End If


      Atau bisa juga seperti ini :

      If Option1.value = True  Then

       If tampung(1, 1) = "t" And tampung(1, 2) = "o" And  tampung(1, 3) = "l" And tampung(1, 4) = "o" And tampung(1, 5) = "n"  And tampung(1, 6) = "g"  Then
      If  tampung(2, 1) = "t" Or tampung(2, 1) = "c" Or  tampung(2, 1) = "s" Or (tampung(2, 1) = "p" And tampung(2, 4) = "l")Then   (noted : kurung tutup dibelakang l didpn then untuk apa ya?)
       proses
       End If
      End if
       Else
       If tampung(1, 1) = "t" Or tampung(1, 1) = "c" Or tampung(1, 1) = "s" Or (tampung(1, 1) = "p" And tampung(1, 4) = "l")  Then
       proses
       End If
       End If




      ________________________________
      From: Liliek Istyantho <faruqoin@...>
      To: "sitinur231@..." <sitinur231@...>; "indoprog-vb@yahoogroups.com" <indoprog-vb@yahoogroups.com>
      Sent: Thursday, November 15, 2012 8:58 AM
      Subject: Re: [indoprog-vb] mengatasi error


      Mbak nur,

      utk err handling hanya untuk melempar problem ke message atau lanjut (bypass procedure/next procedure), jadi bukan untuk menyelesaikan masalah kalo saya lihat jika memang codingnya seperti di bawah, seprtinya kesalahan ada pada if kedua
      yaitu if then if sehrsnya if then elseif then yang kasih warna merah, setahu saya jika if hrs ditutup
      dengan end if. Jd secara struktur hrsnya if ....then...else .... end if atau if .... then elseif .....else ...end if
      mungkin itu dulu masukan dari saya, maaf baru baca emailnya. terimakasih


      ________________________________
      From: Siti Nur <sitinur231@...>
      To: "indoprog-vb@yahoogroups.com" <indoprog-vb@yahoogroups.com>
      Sent: Tuesday, November 13, 2012 11:19 AM
      Subject: Re: [indoprog-vb] mengatasi error


       
      disini sudah menggunakannya, tetap seperti itu. "option1" bermasalah

      ________________________________
      From: Budi Anggoro <b.anggoro@...>
      To: indoprog-vb@yahoogroups.com
      Sent: Tuesday, November 13, 2012 11:00 AM
      Subject: Re: [indoprog-vb] mengatasi error


       
      On 11/13/2012 10:41 AM, Siti Nur wrote:
      >
      > saya memiliki contoh program dengan error "method or data member not
      > found", dan bagianyang di sorot yaitu:
      >
      > If Option1.value = True Then
      > bagaimana cara mengatasinya?
      >
      > dimana option1 mengacu pada pernyataan:
      >
      > If tampung(1, 1) = "t" And tampung(1, 2) = "o" And
      > tampung(1, 3) = "l" And tampung(1, 4) = "o" And tampung(1, 5) = "n"
      > And tampung(1, 6) = "g" Then
      > If tampung(2, 1) = "t" Or tampung(2, 1) = "c" Or
      > tampung(2, 1) = "s" Or (tampung(2, 1) = "p" And tampung(2, 4) = "l") Then
      > proses
      > End If
      > Else
      > If tampung(1, 1) = "t" Or tampung(1, 1) = "c" Or
      > tampung(1, 1) = "s" Or (tampung(1, 1) = "p" And tampung(1, 4) = "l") Then
      > proses
      > End If
      > End If
      >
      >
      > mohon bantuannya
      >
      > [Non-text portions of this message have been removed]
      >
      >
      pake ini aja
      on error goto error handel

      error handel :

      [Non-text portions of this message have been removed]

      [Non-text portions of this message have been removed]




      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.