SlideShare uma empresa Scribd logo
1 de 6
Objeck: Comand 1:   procedure:clik

*

IF EMPTY(thisform.text1.value = "zapry")
*
=MESSAGEBOX("username anda salah",0+16,"info" )
thisform.text1.SetFocus
thisform.text1.Value=""
thisform.text2.Value=""
RETURN
*
ENDIF
*
IF EMPTY(thisform.text2.value = "zerba")
*
=MESSAGEBOX("password anda salah",0+16,"info" )
thisform.text2.SetFocus
thisform.text1.Value=""
thisform.text2.Value=""
RETURN
ENDIF
DO FORM form1.scx
thisform.text1.Value=""
thisform.text2.Value=""
commandd2   procedure:clik
thisform.Release




SELECT mahasiswa
SET ORDER TO STB   && STB
seek(alltrim(thisform.text1.Value))
IF !EMPTY(thisform.text1.value)
      IF FOUND()
            thisform.text2.Value=alamat
            thisform.text3.Value=asal
            thisform.text4.Value=nama
      ELSE
            MESSAGEBOX("data tidak temukan " ,0, "info")
      ENDIF
ENDIF
*
IF EMPTY(thisform.text1.value)
*
=MESSAGEBOX("nama harus diisi dulu", 0+16,"infomasi")
thisform.tetx1.setfocus
RETURN
*
ENDIF
*
IF EMPTY(thisform.text2.value)
*
=MESSAGEBOX("alamat anda harus diisi dulu", 0+16,"informasi")
thisform.tetx1.setfocus
RETURN
*
ENDIF
IF EMPTY(thisform.text3.value)
*
=MESSAGEBOX("alamat anda harus diisi dulu", 0+16,"informasi")
thisform.tetx1.setfocus
RETURN
*
ENDIF
IF EMPTY(thisform.text4.value)
*
=MESSAGEBOX("alamat anda harus diisi dulu", 0+16,"informasi")
thisform.tetx1.setfocus
RETURN
*
ENDIF
SELECT mahasiswa
SET ORDER TO STB    && STB
SEEK(ALLTRIM(thisform.text1.Value))
IF !EMPTY(thisform.text1.Value)
MESSAGEBOX("data sudah ada",0,"info")
       IF FOUND()
             thisform.text1.Value=""
             thisform.text2.Value=""
             thisform.text3.Value=""
             thisform.text4.Value=""
       ELSE
APPEND BLANK
WITH thisform
       replace stb WITH thisform.text1.Value
       replace alamat WITH thisform.text2.Value
       replace asal WITH thisform.text3.Value
       replace nama WITH thisform.text4.Value
       thisform.grid1.Refresh
ENDWITH
MESSAGEBOX("yakin anda ingin menyimpan data ",1,"information")
       thisform.text1.Value=""
       thisform.text2.Value=""
       thisform.text3.Value=""
       thisform.text4.Value=0
       ENDIF
ENDIF
thisform.text1.SetFocus



pilihan=MESSAGEBOX("yakin anda ingin menghapus data ini")
IF pilihan=1
SELECT mahasiswa
      DELETE
      thisform.grid1.Refresh
thisform.text1.Value=""
thisform.text2.Value=""
thisform.text3.Value=""
thisform.text4.Value=""
ENDIF

SELECT mahasiswa
SET ORDER TO STB    && STB
seek(alltrim(thisform.text1.Value))
IF !EMPTY(thisform.text1.value)
      IF FOUND()
             thisform.text2.Value=alamat
             thisform.text3.Value=asal
             thisform.text4.Value=nama
      ELSE
      DELETE
      thisform.text2.Value=alamat
      thisform.text3.Value=asal
      thisform.text4.Value=nama
      thisform.grid1.Refresh
             MESSAGEBOX("data tidak temukan " ,0, "info")
      ENDIF
ENDIF




SELECT akademik
APPEND BLANk
replace angkatan with thisform.combo1.Value
replace spp with thisform.tspp.Value
replace idd WITH thisform.text1.Value
thisform.grid1.Refresh
jwb = MESSAGEBOX("yakin anda sudah selasai",4+32,"info")
IF jwb =6 then
ENDIF

SELECT akademik
SET ORDER TO idd && idd
SEEK (ALLTRIM(thisform.text1.Value))
IF !EMPTY(thisform.text1.value)
      IF FOUND()
      thisform.combo1.Value=angkatan
      thisform.tspp.Value=spp
      ENDIF
DELETE
        thisform.combo1.Value=angkatan
        thisform.tspp.Value=spp
        thisform.grid1.Refresh
        ELSE
        MESSAGEBOX("data yang di edit tidak temukan", 0 , "info")
ENDIF

IF thisform.combo1.Value="2006" then
      thisform.tspp.Value=1600000
ELSE
IF thisform.combo1.Value="2007" then
      thisform.tspp.Value=1700000

ELSE
IF thisform.combo1.Value="2008" then
      thisform.tspp.Value=1800000
ELSE
IF thisform.combo1.Value="2009" then
      thisform.tspp.Value=1900000
ELSE
IF thisform.combo1.Value="2010" then
      thisform.tspp.Value=2000000
ELSE
IF thisform.combo1.Value="2011" then
      thisform.tspp.Value=2100000
ELSE
      thisform.tspp.Value=2200000
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
SELECT akademik
SET ORDER TO idd && idd
SEEK (ALLTRIM(thisform.text1.Value))
IF !EMPTY(thisform.text1.value)
      IF FOUND()
      thisform.combo1.Value=angkatan
      thisform.tspp.Value=spp
      ENDIF
      DELETE
      thisform.combo1.Value=angkatan
      thisform.tspp.Value=spp
      thisform.grid1.Refresh
      ELSE
      MESSAGEBOX("data yang di edit tidak temukan", 0 , "info")
ENDIF
IF thisform.combo1.Value="teknik informatika" then
      thisform.text1.Value=100000
ELSE
IF thisform.combo1.Value="sistem informasih" then
      thisform.text1.Value=100000
ELSE
      thisform.text1.Value=50000
ENDIF
ENDIF
SELECT pembayaran
APPEND BLANK
replace jurusan WITH thisform.combo1.Value
replace pendaftara WITH thisform.text1.Value
thisform.grid1.refresh
MESSAGEBOX("data ingin sismpan data ",'')

keluar=messagebox(" anda ingin keluar dari form ini " , 4+64 , "info")
IF keluar=6
thisform.Release
ENDIF
keluar=messagebox(" anda ingin keluar dari form ini " , 4+64 , "info")
IF keluar=6
thisform.Release
ENDIF
Data mahasiswa commandd do form form1.scx
Tahun jurusan commandd do form form1.scx
Keluar command thisform.release

Mais conteúdo relacionado

Mais procurados

Groovy vs Boilerplate and Ceremony Code
Groovy vs Boilerplate and Ceremony CodeGroovy vs Boilerplate and Ceremony Code
Groovy vs Boilerplate and Ceremony Code
stasimus
 
Unit testing with PHPUnit
Unit testing with PHPUnitUnit testing with PHPUnit
Unit testing with PHPUnit
ferca_sl
 
Ciklum net sat12112011-alexander fomin-expressions and all, all, all
Ciklum net sat12112011-alexander fomin-expressions and all, all, allCiklum net sat12112011-alexander fomin-expressions and all, all, all
Ciklum net sat12112011-alexander fomin-expressions and all, all, all
Ciklum Ukraine
 
Funct format sql_statement.c
Funct format sql_statement.cFunct format sql_statement.c
Funct format sql_statement.c
albertinous
 

Mais procurados (20)

The Ring programming language version 1.6 book - Part 34 of 189
The Ring programming language version 1.6 book - Part 34 of 189The Ring programming language version 1.6 book - Part 34 of 189
The Ring programming language version 1.6 book - Part 34 of 189
 
Python PCEP Functions And Scopes
Python PCEP Functions And ScopesPython PCEP Functions And Scopes
Python PCEP Functions And Scopes
 
Stanfy MadCode Meetup #9: Functional Programming 101 with Swift
Stanfy MadCode Meetup #9: Functional Programming 101 with SwiftStanfy MadCode Meetup #9: Functional Programming 101 with Swift
Stanfy MadCode Meetup #9: Functional Programming 101 with Swift
 
iRODS Rule Language Cheat Sheet
iRODS Rule Language Cheat SheetiRODS Rule Language Cheat Sheet
iRODS Rule Language Cheat Sheet
 
Oracle
OracleOracle
Oracle
 
[PyCon2016]To mock or not to mock, that is the questions
[PyCon2016]To mock or not to mock, that is the questions[PyCon2016]To mock or not to mock, that is the questions
[PyCon2016]To mock or not to mock, that is the questions
 
Groovy vs Boilerplate and Ceremony Code
Groovy vs Boilerplate and Ceremony CodeGroovy vs Boilerplate and Ceremony Code
Groovy vs Boilerplate and Ceremony Code
 
PythonOOP
PythonOOPPythonOOP
PythonOOP
 
20190330 immutable data
20190330 immutable data20190330 immutable data
20190330 immutable data
 
Sql Tags
Sql TagsSql Tags
Sql Tags
 
Unit testing with PHPUnit
Unit testing with PHPUnitUnit testing with PHPUnit
Unit testing with PHPUnit
 
Notes for C Programming for MCA, BCA, B. Tech CSE, ECE and MSC (CS) 3 of 5 b...
Notes for C Programming for MCA, BCA, B. Tech CSE, ECE and MSC (CS) 3 of 5  b...Notes for C Programming for MCA, BCA, B. Tech CSE, ECE and MSC (CS) 3 of 5  b...
Notes for C Programming for MCA, BCA, B. Tech CSE, ECE and MSC (CS) 3 of 5 b...
 
Lecture 3 sql {basics ddl commands}
Lecture 3 sql {basics  ddl commands}Lecture 3 sql {basics  ddl commands}
Lecture 3 sql {basics ddl commands}
 
Ciklum net sat12112011-alexander fomin-expressions and all, all, all
Ciklum net sat12112011-alexander fomin-expressions and all, all, allCiklum net sat12112011-alexander fomin-expressions and all, all, all
Ciklum net sat12112011-alexander fomin-expressions and all, all, all
 
Pooya Khaloo Presentation on IWMC 2015
Pooya Khaloo Presentation on IWMC 2015Pooya Khaloo Presentation on IWMC 2015
Pooya Khaloo Presentation on IWMC 2015
 
Disassembling Go
Disassembling GoDisassembling Go
Disassembling Go
 
Learn plsql
Learn plsqlLearn plsql
Learn plsql
 
Funct format sql_statement.c
Funct format sql_statement.cFunct format sql_statement.c
Funct format sql_statement.c
 
Sql
SqlSql
Sql
 
Extbase and Beyond
Extbase and BeyondExtbase and Beyond
Extbase and Beyond
 

Destaque

Surf play rassegna stampa del libro di F. Fiorentino e T. Lavizzari
Surf play   rassegna stampa del libro di F. Fiorentino e T. LavizzariSurf play   rassegna stampa del libro di F. Fiorentino e T. Lavizzari
Surf play rassegna stampa del libro di F. Fiorentino e T. Lavizzari
Vololibero Edizioni
 
Wager chapter15 2nded-000
Wager chapter15 2nded-000Wager chapter15 2nded-000
Wager chapter15 2nded-000
Krupa Shah
 

Destaque (14)

Hidyn
HidynHidyn
Hidyn
 
1 fm intro
1 fm intro1 fm intro
1 fm intro
 
fino al 30 Maggio 2014 offerta vololibero edizioni.
fino al 30 Maggio 2014 offerta vololibero edizioni.fino al 30 Maggio 2014 offerta vololibero edizioni.
fino al 30 Maggio 2014 offerta vololibero edizioni.
 
Madonna liberaci da putin, la rassegna stampa del libro sulle Pussy Riot
Madonna liberaci da putin, la rassegna stampa del libro sulle Pussy RiotMadonna liberaci da putin, la rassegna stampa del libro sulle Pussy Riot
Madonna liberaci da putin, la rassegna stampa del libro sulle Pussy Riot
 
Surf play rassegna stampa del libro di F. Fiorentino e T. Lavizzari
Surf play   rassegna stampa del libro di F. Fiorentino e T. LavizzariSurf play   rassegna stampa del libro di F. Fiorentino e T. Lavizzari
Surf play rassegna stampa del libro di F. Fiorentino e T. Lavizzari
 
Scrum rules
Scrum rulesScrum rules
Scrum rules
 
Senator super stars 2012
Senator super stars 2012Senator super stars 2012
Senator super stars 2012
 
Adrenal glands
Adrenal glandsAdrenal glands
Adrenal glands
 
Anitának
Anitának Anitának
Anitának
 
Vololibero presenta stelle deboli con informazioni e preview
Vololibero presenta stelle deboli con informazioni e previewVololibero presenta stelle deboli con informazioni e preview
Vololibero presenta stelle deboli con informazioni e preview
 
Anitának
AnitánakAnitának
Anitának
 
Wager chapter15 2nded-000
Wager chapter15 2nded-000Wager chapter15 2nded-000
Wager chapter15 2nded-000
 
Shg lit rev
Shg lit revShg lit rev
Shg lit rev
 
Mini dental implants
Mini dental implantsMini dental implants
Mini dental implants
 

Último

Último (20)

UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 

Objeck

  • 1. Objeck: Comand 1: procedure:clik * IF EMPTY(thisform.text1.value = "zapry") * =MESSAGEBOX("username anda salah",0+16,"info" ) thisform.text1.SetFocus thisform.text1.Value="" thisform.text2.Value="" RETURN * ENDIF * IF EMPTY(thisform.text2.value = "zerba") * =MESSAGEBOX("password anda salah",0+16,"info" ) thisform.text2.SetFocus thisform.text1.Value="" thisform.text2.Value="" RETURN ENDIF DO FORM form1.scx thisform.text1.Value="" thisform.text2.Value="" commandd2 procedure:clik thisform.Release SELECT mahasiswa SET ORDER TO STB && STB seek(alltrim(thisform.text1.Value)) IF !EMPTY(thisform.text1.value) IF FOUND() thisform.text2.Value=alamat thisform.text3.Value=asal thisform.text4.Value=nama ELSE MESSAGEBOX("data tidak temukan " ,0, "info") ENDIF ENDIF
  • 2. * IF EMPTY(thisform.text1.value) * =MESSAGEBOX("nama harus diisi dulu", 0+16,"infomasi") thisform.tetx1.setfocus RETURN * ENDIF * IF EMPTY(thisform.text2.value) * =MESSAGEBOX("alamat anda harus diisi dulu", 0+16,"informasi") thisform.tetx1.setfocus RETURN * ENDIF IF EMPTY(thisform.text3.value) * =MESSAGEBOX("alamat anda harus diisi dulu", 0+16,"informasi") thisform.tetx1.setfocus RETURN * ENDIF IF EMPTY(thisform.text4.value) * =MESSAGEBOX("alamat anda harus diisi dulu", 0+16,"informasi") thisform.tetx1.setfocus RETURN * ENDIF SELECT mahasiswa SET ORDER TO STB && STB SEEK(ALLTRIM(thisform.text1.Value)) IF !EMPTY(thisform.text1.Value) MESSAGEBOX("data sudah ada",0,"info") IF FOUND() thisform.text1.Value="" thisform.text2.Value="" thisform.text3.Value="" thisform.text4.Value="" ELSE APPEND BLANK WITH thisform replace stb WITH thisform.text1.Value replace alamat WITH thisform.text2.Value replace asal WITH thisform.text3.Value replace nama WITH thisform.text4.Value thisform.grid1.Refresh ENDWITH MESSAGEBOX("yakin anda ingin menyimpan data ",1,"information") thisform.text1.Value="" thisform.text2.Value="" thisform.text3.Value="" thisform.text4.Value=0 ENDIF ENDIF thisform.text1.SetFocus pilihan=MESSAGEBOX("yakin anda ingin menghapus data ini")
  • 3. IF pilihan=1 SELECT mahasiswa DELETE thisform.grid1.Refresh thisform.text1.Value="" thisform.text2.Value="" thisform.text3.Value="" thisform.text4.Value="" ENDIF SELECT mahasiswa SET ORDER TO STB && STB seek(alltrim(thisform.text1.Value)) IF !EMPTY(thisform.text1.value) IF FOUND() thisform.text2.Value=alamat thisform.text3.Value=asal thisform.text4.Value=nama ELSE DELETE thisform.text2.Value=alamat thisform.text3.Value=asal thisform.text4.Value=nama thisform.grid1.Refresh MESSAGEBOX("data tidak temukan " ,0, "info") ENDIF ENDIF SELECT akademik APPEND BLANk replace angkatan with thisform.combo1.Value replace spp with thisform.tspp.Value replace idd WITH thisform.text1.Value thisform.grid1.Refresh jwb = MESSAGEBOX("yakin anda sudah selasai",4+32,"info") IF jwb =6 then ENDIF SELECT akademik SET ORDER TO idd && idd SEEK (ALLTRIM(thisform.text1.Value)) IF !EMPTY(thisform.text1.value) IF FOUND() thisform.combo1.Value=angkatan thisform.tspp.Value=spp ENDIF
  • 4. DELETE thisform.combo1.Value=angkatan thisform.tspp.Value=spp thisform.grid1.Refresh ELSE MESSAGEBOX("data yang di edit tidak temukan", 0 , "info") ENDIF IF thisform.combo1.Value="2006" then thisform.tspp.Value=1600000 ELSE IF thisform.combo1.Value="2007" then thisform.tspp.Value=1700000 ELSE IF thisform.combo1.Value="2008" then thisform.tspp.Value=1800000 ELSE IF thisform.combo1.Value="2009" then thisform.tspp.Value=1900000 ELSE IF thisform.combo1.Value="2010" then thisform.tspp.Value=2000000 ELSE IF thisform.combo1.Value="2011" then thisform.tspp.Value=2100000 ELSE thisform.tspp.Value=2200000 ENDIF ENDIF ENDIF ENDIF ENDIF ENDIF SELECT akademik SET ORDER TO idd && idd SEEK (ALLTRIM(thisform.text1.Value)) IF !EMPTY(thisform.text1.value) IF FOUND() thisform.combo1.Value=angkatan thisform.tspp.Value=spp ENDIF DELETE thisform.combo1.Value=angkatan thisform.tspp.Value=spp thisform.grid1.Refresh ELSE MESSAGEBOX("data yang di edit tidak temukan", 0 , "info") ENDIF
  • 5. IF thisform.combo1.Value="teknik informatika" then thisform.text1.Value=100000 ELSE IF thisform.combo1.Value="sistem informasih" then thisform.text1.Value=100000 ELSE thisform.text1.Value=50000 ENDIF ENDIF SELECT pembayaran APPEND BLANK replace jurusan WITH thisform.combo1.Value replace pendaftara WITH thisform.text1.Value thisform.grid1.refresh MESSAGEBOX("data ingin sismpan data ",'') keluar=messagebox(" anda ingin keluar dari form ini " , 4+64 , "info") IF keluar=6 thisform.Release ENDIF keluar=messagebox(" anda ingin keluar dari form ini " , 4+64 , "info") IF keluar=6 thisform.Release ENDIF
  • 6. Data mahasiswa commandd do form form1.scx Tahun jurusan commandd do form form1.scx Keluar command thisform.release