SlideShare una empresa de Scribd logo
1 de 13
PEMROGRAMAN TERSUTRKTUR
By: Siti Mariyah
MEMORY VARIABLES
firstName = “Tom”  create a cchracter memory
variable whose symbolic name shall be firstName
and assign to the string “Tom” to that variable
lastName= “Jerry”  create a cchracter memory
variable whose symbolic name shall be lastName
and assign to the string “Jerry” to that variable
Display memory  display local variables, foxpro
system variable, windows definition, menu
definition and pop-up windows definition
MEMORY VARIABLES (2)
?firstName  dipslay memory variable firstName
?lastName  dipslay memory variable lastName
?”Hello”  display character string-display Hello
?M.firstName  display memory variable
firstName
?M.lastName  display memory variable lastName
MEMORY VARIABLES (3)
noName = firstName  create a carachter memory variable whose symbolic name
shall be noName and assign the contents to the contents of variable firstName
Key = 5  creates a numeric memory variable whose symbolic name shall be Key and
assign 5 to that variable
Key = 5.5  creates a numeric memory variable whose symbolic name shall be Key
and assign 5.5 to that variable
Valid = .T.  create a logical memory varible whose symbolic name shall be Valid and
assigns True to that variable
Valid = NOT .F. create a logical memory varible whose symbolic name shall be Valid
and assigns True to that variable
myDay = {12/25/98}  creates a logical memory variable whose symbolic name shall
be myDay and assigns 12/25/98 to that variable
STRING FUNCTION AND
MANIPULATION
firstName = “tom”
lastName = “jerry”
noName = “john doe”
The + symbol is used to concatenate
(merge/combine) two or more strings
?”Hello” + firstName  display Hello tom
? firstName + lastName  display tomjerry
? firstName +’ ’+ lastName  display tom jerry
STRING FUNCTION AND
MANIPULATION (2)
UPPER FUNCTION
? ‘*‘ + Upper(firstName) + ‘+’  display [TOM]
? ‘*‘ + Upper(“good TimE”) + ‘+’  display [GOOD TIME]
totalName = firstName +’ ’+lastName  create a local
memory variable whose symbolic name shall be totalName
and assigns the contents to tom jerry
totalName = Upper(lastName)+’, ’+Upper(firstName ) 
create a local memory variable whose symbolic name shall be
totalName and assigns the contents to JERRY, TOM
STRING FUNCTION AND
MANIPULATION (3)
LOWER FUNCTION
firstName = “TOm”
lastName = “JERry”
noName = “john doe”
? ‘*‘ + Lower(firstName) + ‘+’  display [tom]
? ‘*‘ + Lower(“good TimE”) + ‘+’  display [good time]
totalName = firstName +’ ’+lastName  create a local memory variable
whose symbolic name shall be totalName and assigns the contents to tom
jerry
totalName = Upper(lastName)+’, ’+Upper(firstName )  create a local
memory variable whose symbolic name shall be totalName and assigns the
contents to JERRY, TOM
Operasi Tanggal dan Waktu
CDOW() : menghasilkan nama hari dalam bahasa inggris
Logic : ?CDOW(ctod(“tanggal”))
Contoh : ?CDOW(ctod(“3/20/2006”))  Monday
CMONTH() : menghasilkan nama bulan dalam bahasa inggris
Logic : ?CMONTH(ctod(“tanggal”))
Contoh : ?CMONTH(ctod(“3/20/2006”))  March
DATE() : menghasilkan nilai tanggal sekarang
Logic : ?DATE()
Contoh : ?DATE()  04/09/2013
Operasi Tanggal dan Waktu(2)
DATETIME() : menghasilkan nilai tanggal sekarang
Logic : ?DATETIME()
Contoh : ?DATETIME()  04/09/2013 05:30:21 PM
DAY() : menghasilkan tanggal (1 sd 30)
Logic : ?DAY(“tanggal”)
Contoh : ?DAY(ctod(“3/20/2006”))  20
DMY() : menghasilkan tanggal, bulan ,dan tahun
Logic : ?DMY(ctod(“tanggal”))
Contoh : ?DMY(ctod(“3/20/2006”))  20 March 2006
Operasi Tanggal dan Waktu(3)
MDY() : menghasilkan bulan, tanggal, dan tahun
Logic : ?DMY(ctod(“tanggal”))
Contoh : ?DMY(ctod(“3/20/2006”))  March
20, 2006
TIME() : menghasilkan jam sekarang dengan format
hh:mm:ss
Logic : ?TIME()
Contoh : ?TIME()  05:30:21
Operasi Numeric
ABS : menghasilkan nilai mutlak
Contoh : ?ABS(-3)  3
INT() : menghasilkan bilangan bulat
Contoh : ?INT(1.9)  1
Konversi Tipe dan Ekspresi
ASC() : menghasilkan nilai ASCII dari karakter yang menjadi
argumen
Contoh : ?ASC(“A”)  65
CHR() : menghasilkan sebuah karakter yang nilai ASCII nya
dicantumkan dalam argumen
Contoh: ?CHR(65)  A
CTOD() : menghasilkan data bertipe tanggal berdasarkan
string argumennya
Contoh: ?CTOD(“3/20/2006”)  03/20/2006 Contoh
Konversi Tipe dan Ekspresi (2)
DTOC() : menghasilkan data bertipe string
berdasarkan date argumennya
Contoh: ?DTOC(date())  “03/20/2006”
STR() : menghasilkan nilai string dari numeric
Contoh: ?STR(5)  “5”
VAL() : menghasilkan nilai numeric dari string
Contoh : ?VAL(“5“)  5

Más contenido relacionado

La actualidad más candente

First step of Performance Tuning
First step of Performance TuningFirst step of Performance Tuning
First step of Performance Tuningrisou
 
4Developers 2015: Testowanie ze Spockiem - Dominik Przybysz
4Developers 2015: Testowanie ze Spockiem - Dominik Przybysz4Developers 2015: Testowanie ze Spockiem - Dominik Przybysz
4Developers 2015: Testowanie ze Spockiem - Dominik PrzybyszPROIDEA
 
Quadratic Expressions
Quadratic ExpressionsQuadratic Expressions
Quadratic Expressions2IIM
 
Tree tricks osdc_melbourne_20101124
Tree tricks osdc_melbourne_20101124Tree tricks osdc_melbourne_20101124
Tree tricks osdc_melbourne_20101124David Fetter
 
The Ring programming language version 1.3 book - Part 43 of 88
The Ring programming language version 1.3 book - Part 43 of 88The Ring programming language version 1.3 book - Part 43 of 88
The Ring programming language version 1.3 book - Part 43 of 88Mahmoud Samir Fayed
 
infoShare 2014: Gino Marckx, Forget about Agile, let's write great code first!
infoShare 2014: Gino Marckx, Forget about Agile, let's write great code first!infoShare 2014: Gino Marckx, Forget about Agile, let's write great code first!
infoShare 2014: Gino Marckx, Forget about Agile, let's write great code first!Infoshare
 
Network analysis with Hadoop and Neo4j
Network analysis with Hadoop and Neo4jNetwork analysis with Hadoop and Neo4j
Network analysis with Hadoop and Neo4jfvanvollenhoven
 

La actualidad más candente (13)

First step of Performance Tuning
First step of Performance TuningFirst step of Performance Tuning
First step of Performance Tuning
 
FNT 2015 PDIS CodeEU - Zanimljiva informatika - 02 Djordje Pavlovic - Live_ch...
FNT 2015 PDIS CodeEU - Zanimljiva informatika - 02 Djordje Pavlovic - Live_ch...FNT 2015 PDIS CodeEU - Zanimljiva informatika - 02 Djordje Pavlovic - Live_ch...
FNT 2015 PDIS CodeEU - Zanimljiva informatika - 02 Djordje Pavlovic - Live_ch...
 
Kill the DBA
Kill the DBAKill the DBA
Kill the DBA
 
4Developers 2015: Testowanie ze Spockiem - Dominik Przybysz
4Developers 2015: Testowanie ze Spockiem - Dominik Przybysz4Developers 2015: Testowanie ze Spockiem - Dominik Przybysz
4Developers 2015: Testowanie ze Spockiem - Dominik Przybysz
 
Quadratic Expressions
Quadratic ExpressionsQuadratic Expressions
Quadratic Expressions
 
Tree tricks osdc_melbourne_20101124
Tree tricks osdc_melbourne_20101124Tree tricks osdc_melbourne_20101124
Tree tricks osdc_melbourne_20101124
 
Polymorphism
PolymorphismPolymorphism
Polymorphism
 
The Ring programming language version 1.3 book - Part 43 of 88
The Ring programming language version 1.3 book - Part 43 of 88The Ring programming language version 1.3 book - Part 43 of 88
The Ring programming language version 1.3 book - Part 43 of 88
 
Sol3
Sol3Sol3
Sol3
 
Solid
SolidSolid
Solid
 
infoShare 2014: Gino Marckx, Forget about Agile, let's write great code first!
infoShare 2014: Gino Marckx, Forget about Agile, let's write great code first!infoShare 2014: Gino Marckx, Forget about Agile, let's write great code first!
infoShare 2014: Gino Marckx, Forget about Agile, let's write great code first!
 
ES2015 - Stepan Parunashvili
ES2015 - Stepan ParunashviliES2015 - Stepan Parunashvili
ES2015 - Stepan Parunashvili
 
Network analysis with Hadoop and Neo4j
Network analysis with Hadoop and Neo4jNetwork analysis with Hadoop and Neo4j
Network analysis with Hadoop and Neo4j
 

Similar a Pemrograman Terstruktur 3

The Ring programming language version 1.10 book - Part 31 of 212
The Ring programming language version 1.10 book - Part 31 of 212The Ring programming language version 1.10 book - Part 31 of 212
The Ring programming language version 1.10 book - Part 31 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.6 book - Part 25 of 189
The Ring programming language version 1.6 book - Part 25 of 189The Ring programming language version 1.6 book - Part 25 of 189
The Ring programming language version 1.6 book - Part 25 of 189Mahmoud Samir Fayed
 
Go ahead, make my day
Go ahead, make my dayGo ahead, make my day
Go ahead, make my dayTor Ivry
 
MySQL Built-In Functions
MySQL Built-In FunctionsMySQL Built-In Functions
MySQL Built-In FunctionsSHC
 
The Ring programming language version 1.4.1 book - Part 6 of 31
The Ring programming language version 1.4.1 book - Part 6 of 31The Ring programming language version 1.4.1 book - Part 6 of 31
The Ring programming language version 1.4.1 book - Part 6 of 31Mahmoud Samir Fayed
 
Learning to code with Python! (Microsoft Virtual Academy).pptx
Learning to code with Python! (Microsoft Virtual Academy).pptxLearning to code with Python! (Microsoft Virtual Academy).pptx
Learning to code with Python! (Microsoft Virtual Academy).pptxJoshuaJoseph70
 
Learning to code with Python! (MVA).pptx
Learning to code with Python! (MVA).pptxLearning to code with Python! (MVA).pptx
Learning to code with Python! (MVA).pptxJoshuaJoseph70
 
The Ring programming language version 1.5.4 book - Part 23 of 185
The Ring programming language version 1.5.4 book - Part 23 of 185The Ring programming language version 1.5.4 book - Part 23 of 185
The Ring programming language version 1.5.4 book - Part 23 of 185Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 22 of 212
The Ring programming language version 1.10 book - Part 22 of 212The Ring programming language version 1.10 book - Part 22 of 212
The Ring programming language version 1.10 book - Part 22 of 212Mahmoud Samir Fayed
 
[EN] Ada Lovelace Day 2014 - Tampon run
[EN] Ada Lovelace Day 2014  - Tampon run[EN] Ada Lovelace Day 2014  - Tampon run
[EN] Ada Lovelace Day 2014 - Tampon runMaja Kraljič
 
The Ring programming language version 1.7 book - Part 26 of 196
The Ring programming language version 1.7 book - Part 26 of 196The Ring programming language version 1.7 book - Part 26 of 196
The Ring programming language version 1.7 book - Part 26 of 196Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 34 of 212
The Ring programming language version 1.10 book - Part 34 of 212The Ring programming language version 1.10 book - Part 34 of 212
The Ring programming language version 1.10 book - Part 34 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.5 book - Part 3 of 31
The Ring programming language version 1.5 book - Part 3 of 31The Ring programming language version 1.5 book - Part 3 of 31
The Ring programming language version 1.5 book - Part 3 of 31Mahmoud Samir Fayed
 
The Ring programming language version 1.5.2 book - Part 14 of 181
The Ring programming language version 1.5.2 book - Part 14 of 181The Ring programming language version 1.5.2 book - Part 14 of 181
The Ring programming language version 1.5.2 book - Part 14 of 181Mahmoud Samir Fayed
 
The Ring programming language version 1.7 book - Part 29 of 196
The Ring programming language version 1.7 book - Part 29 of 196The Ring programming language version 1.7 book - Part 29 of 196
The Ring programming language version 1.7 book - Part 29 of 196Mahmoud Samir Fayed
 
Higher Order Procedures (in Ruby)
Higher Order Procedures (in Ruby)Higher Order Procedures (in Ruby)
Higher Order Procedures (in Ruby)Nate Murray
 
The Ring programming language version 1.5.1 book - Part 24 of 180
The Ring programming language version 1.5.1 book - Part 24 of 180The Ring programming language version 1.5.1 book - Part 24 of 180
The Ring programming language version 1.5.1 book - Part 24 of 180Mahmoud Samir Fayed
 
The Ring programming language version 1.5.3 book - Part 23 of 184
The Ring programming language version 1.5.3 book - Part 23 of 184The Ring programming language version 1.5.3 book - Part 23 of 184
The Ring programming language version 1.5.3 book - Part 23 of 184Mahmoud Samir Fayed
 
AST Transformations at JFokus
AST Transformations at JFokusAST Transformations at JFokus
AST Transformations at JFokusHamletDRC
 

Similar a Pemrograman Terstruktur 3 (20)

The Ring programming language version 1.10 book - Part 31 of 212
The Ring programming language version 1.10 book - Part 31 of 212The Ring programming language version 1.10 book - Part 31 of 212
The Ring programming language version 1.10 book - Part 31 of 212
 
The Ring programming language version 1.6 book - Part 25 of 189
The Ring programming language version 1.6 book - Part 25 of 189The Ring programming language version 1.6 book - Part 25 of 189
The Ring programming language version 1.6 book - Part 25 of 189
 
Go ahead, make my day
Go ahead, make my dayGo ahead, make my day
Go ahead, make my day
 
MySQL Built-In Functions
MySQL Built-In FunctionsMySQL Built-In Functions
MySQL Built-In Functions
 
The Ring programming language version 1.4.1 book - Part 6 of 31
The Ring programming language version 1.4.1 book - Part 6 of 31The Ring programming language version 1.4.1 book - Part 6 of 31
The Ring programming language version 1.4.1 book - Part 6 of 31
 
Learning to code with Python! (Microsoft Virtual Academy).pptx
Learning to code with Python! (Microsoft Virtual Academy).pptxLearning to code with Python! (Microsoft Virtual Academy).pptx
Learning to code with Python! (Microsoft Virtual Academy).pptx
 
Learning to code with Python! (MVA).pptx
Learning to code with Python! (MVA).pptxLearning to code with Python! (MVA).pptx
Learning to code with Python! (MVA).pptx
 
The Ring programming language version 1.5.4 book - Part 23 of 185
The Ring programming language version 1.5.4 book - Part 23 of 185The Ring programming language version 1.5.4 book - Part 23 of 185
The Ring programming language version 1.5.4 book - Part 23 of 185
 
The Ring programming language version 1.10 book - Part 22 of 212
The Ring programming language version 1.10 book - Part 22 of 212The Ring programming language version 1.10 book - Part 22 of 212
The Ring programming language version 1.10 book - Part 22 of 212
 
[EN] Ada Lovelace Day 2014 - Tampon run
[EN] Ada Lovelace Day 2014  - Tampon run[EN] Ada Lovelace Day 2014  - Tampon run
[EN] Ada Lovelace Day 2014 - Tampon run
 
The Ring programming language version 1.7 book - Part 26 of 196
The Ring programming language version 1.7 book - Part 26 of 196The Ring programming language version 1.7 book - Part 26 of 196
The Ring programming language version 1.7 book - Part 26 of 196
 
The Ring programming language version 1.10 book - Part 34 of 212
The Ring programming language version 1.10 book - Part 34 of 212The Ring programming language version 1.10 book - Part 34 of 212
The Ring programming language version 1.10 book - Part 34 of 212
 
The Ring programming language version 1.5 book - Part 3 of 31
The Ring programming language version 1.5 book - Part 3 of 31The Ring programming language version 1.5 book - Part 3 of 31
The Ring programming language version 1.5 book - Part 3 of 31
 
Java VS Python
Java VS PythonJava VS Python
Java VS Python
 
The Ring programming language version 1.5.2 book - Part 14 of 181
The Ring programming language version 1.5.2 book - Part 14 of 181The Ring programming language version 1.5.2 book - Part 14 of 181
The Ring programming language version 1.5.2 book - Part 14 of 181
 
The Ring programming language version 1.7 book - Part 29 of 196
The Ring programming language version 1.7 book - Part 29 of 196The Ring programming language version 1.7 book - Part 29 of 196
The Ring programming language version 1.7 book - Part 29 of 196
 
Higher Order Procedures (in Ruby)
Higher Order Procedures (in Ruby)Higher Order Procedures (in Ruby)
Higher Order Procedures (in Ruby)
 
The Ring programming language version 1.5.1 book - Part 24 of 180
The Ring programming language version 1.5.1 book - Part 24 of 180The Ring programming language version 1.5.1 book - Part 24 of 180
The Ring programming language version 1.5.1 book - Part 24 of 180
 
The Ring programming language version 1.5.3 book - Part 23 of 184
The Ring programming language version 1.5.3 book - Part 23 of 184The Ring programming language version 1.5.3 book - Part 23 of 184
The Ring programming language version 1.5.3 book - Part 23 of 184
 
AST Transformations at JFokus
AST Transformations at JFokusAST Transformations at JFokus
AST Transformations at JFokus
 

Último

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 

Último (20)

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 

Pemrograman Terstruktur 3

  • 2. MEMORY VARIABLES firstName = “Tom”  create a cchracter memory variable whose symbolic name shall be firstName and assign to the string “Tom” to that variable lastName= “Jerry”  create a cchracter memory variable whose symbolic name shall be lastName and assign to the string “Jerry” to that variable Display memory  display local variables, foxpro system variable, windows definition, menu definition and pop-up windows definition
  • 3. MEMORY VARIABLES (2) ?firstName  dipslay memory variable firstName ?lastName  dipslay memory variable lastName ?”Hello”  display character string-display Hello ?M.firstName  display memory variable firstName ?M.lastName  display memory variable lastName
  • 4. MEMORY VARIABLES (3) noName = firstName  create a carachter memory variable whose symbolic name shall be noName and assign the contents to the contents of variable firstName Key = 5  creates a numeric memory variable whose symbolic name shall be Key and assign 5 to that variable Key = 5.5  creates a numeric memory variable whose symbolic name shall be Key and assign 5.5 to that variable Valid = .T.  create a logical memory varible whose symbolic name shall be Valid and assigns True to that variable Valid = NOT .F. create a logical memory varible whose symbolic name shall be Valid and assigns True to that variable myDay = {12/25/98}  creates a logical memory variable whose symbolic name shall be myDay and assigns 12/25/98 to that variable
  • 5. STRING FUNCTION AND MANIPULATION firstName = “tom” lastName = “jerry” noName = “john doe” The + symbol is used to concatenate (merge/combine) two or more strings ?”Hello” + firstName  display Hello tom ? firstName + lastName  display tomjerry ? firstName +’ ’+ lastName  display tom jerry
  • 6. STRING FUNCTION AND MANIPULATION (2) UPPER FUNCTION ? ‘*‘ + Upper(firstName) + ‘+’  display [TOM] ? ‘*‘ + Upper(“good TimE”) + ‘+’  display [GOOD TIME] totalName = firstName +’ ’+lastName  create a local memory variable whose symbolic name shall be totalName and assigns the contents to tom jerry totalName = Upper(lastName)+’, ’+Upper(firstName )  create a local memory variable whose symbolic name shall be totalName and assigns the contents to JERRY, TOM
  • 7. STRING FUNCTION AND MANIPULATION (3) LOWER FUNCTION firstName = “TOm” lastName = “JERry” noName = “john doe” ? ‘*‘ + Lower(firstName) + ‘+’  display [tom] ? ‘*‘ + Lower(“good TimE”) + ‘+’  display [good time] totalName = firstName +’ ’+lastName  create a local memory variable whose symbolic name shall be totalName and assigns the contents to tom jerry totalName = Upper(lastName)+’, ’+Upper(firstName )  create a local memory variable whose symbolic name shall be totalName and assigns the contents to JERRY, TOM
  • 8. Operasi Tanggal dan Waktu CDOW() : menghasilkan nama hari dalam bahasa inggris Logic : ?CDOW(ctod(“tanggal”)) Contoh : ?CDOW(ctod(“3/20/2006”))  Monday CMONTH() : menghasilkan nama bulan dalam bahasa inggris Logic : ?CMONTH(ctod(“tanggal”)) Contoh : ?CMONTH(ctod(“3/20/2006”))  March DATE() : menghasilkan nilai tanggal sekarang Logic : ?DATE() Contoh : ?DATE()  04/09/2013
  • 9. Operasi Tanggal dan Waktu(2) DATETIME() : menghasilkan nilai tanggal sekarang Logic : ?DATETIME() Contoh : ?DATETIME()  04/09/2013 05:30:21 PM DAY() : menghasilkan tanggal (1 sd 30) Logic : ?DAY(“tanggal”) Contoh : ?DAY(ctod(“3/20/2006”))  20 DMY() : menghasilkan tanggal, bulan ,dan tahun Logic : ?DMY(ctod(“tanggal”)) Contoh : ?DMY(ctod(“3/20/2006”))  20 March 2006
  • 10. Operasi Tanggal dan Waktu(3) MDY() : menghasilkan bulan, tanggal, dan tahun Logic : ?DMY(ctod(“tanggal”)) Contoh : ?DMY(ctod(“3/20/2006”))  March 20, 2006 TIME() : menghasilkan jam sekarang dengan format hh:mm:ss Logic : ?TIME() Contoh : ?TIME()  05:30:21
  • 11. Operasi Numeric ABS : menghasilkan nilai mutlak Contoh : ?ABS(-3)  3 INT() : menghasilkan bilangan bulat Contoh : ?INT(1.9)  1
  • 12. Konversi Tipe dan Ekspresi ASC() : menghasilkan nilai ASCII dari karakter yang menjadi argumen Contoh : ?ASC(“A”)  65 CHR() : menghasilkan sebuah karakter yang nilai ASCII nya dicantumkan dalam argumen Contoh: ?CHR(65)  A CTOD() : menghasilkan data bertipe tanggal berdasarkan string argumennya Contoh: ?CTOD(“3/20/2006”)  03/20/2006 Contoh
  • 13. Konversi Tipe dan Ekspresi (2) DTOC() : menghasilkan data bertipe string berdasarkan date argumennya Contoh: ?DTOC(date())  “03/20/2006” STR() : menghasilkan nilai string dari numeric Contoh: ?STR(5)  “5” VAL() : menghasilkan nilai numeric dari string Contoh : ?VAL(“5“)  5