Naredba If..Then..Else... Procedure TForm1.Button1Click ( SEnder: Tobject ); Var x, y, Max : Integer; Begin x := StrToInt ( Edit1.Text ); y := StrToInt.

Slides:



Advertisements
Similar presentations
Super Logo Help Sheets…. Help Save Open Memory View Problems Projects Shortcuts Click on the labels to find out more about each icon!
Advertisements

Problem 1: Balls Problem 2: Josephine Problem 3: Alternating List.
Click to edit Master title style. Click to edit Master subtitle style.
Główny program projektu w Delphi oraz ego składniki. program Control1; uses Forms, Main in 'MAIN.PAS' {Form1}; begin Application.CreateForm(TForm1, Form1);
Presentation Title. Presentation Title (can go two or three lines) This Font is Georgia/bold Template Instructions To edit the presentation title above:
4.3 Searching for Patient Information 4-12 Medisoft offers two options for conducting searches for information: 1.Search for and Field boxes 2.Locate buttons.
1 TITRE Click to edit text. 2 Text box Click to edit text A Titre.
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
Introduction to Visual Basic Chulantha Kulasekere.
HEADLINE TEXT HERE Click here to add text. Click here to add text. Click here to add text. Click here to add text. Click here to add text. Click here to.
Title Slide Title Circle K at [insert University name] [Date]
CAPTIONING YOUTUBE VIDEOS. Using the Video Manager In order to start captioning Youtube videos, there are some steps to follow: 1. Have the video uploaded.
Pay Example (PFirst98) Please use speaker notes for additional information!
Created by Alia Al-Abdulkarim 2008 Visual Basic Vs. Java.
Word Processor Version.01 EME 4411 Week 5. The Scroll Bars.
Slide 1 Controls v Control naming convention –Label: lblName –Command Button: cmdName –Text Box: txtName.
KEYWORD SEARCH. Click here to begin KEYWORD SEARCH.
Visual Basic A Quick Tutorial VB Review for ACS 367.
Adding Code to the Option Button. Open VB 1.Double click the Calculate button and select General from the Object list box. 2.Add the following code to.
Biosimilar (Insulin) – Competitive Landscape and Market & Pipeline Analysis, 2016 DelveInsight’s, “Biosimilar (Insulin) – Competitive Landscape and Market. Request for sample of this research report:
THREE COLUMN (Click to edit) Introduction or Abstract Type in or past your text (Click to edit) Materials and Methods Type in or past your text (Click.
1 By Dr. HANY ELSALAMONY. 1. What are differences between interpreted and compiled languages? 2. What are the programming steps to creating the Visual.
Headline sample style Intro sample style Click to edit Master text styles –Second level Third level –Fourth level o Fifth level.
Click to Add Title Click to Add Subtitle.
Delete text and place photo here.
Proses Pengulangan Dengan FOR
Pemrograman Database Delphi & MySQL
TLabel Name: lblHarga Caption: Harga TLabel Name: lblPPN
الاسباب الأضرار وسائل الحمايه
Двумерные массивы в интегрированной среде Delphi 7
Department Array in Visual Basic
Click to edit Master text styles
Input and Output Interfaces
Motivation and Background
3 10 A B 0.25 C 1 2 D 25% 7 20 E 20% F 0.35 G H 0.2 To edit presentation: change text in shapes, select all shapes by clicking on shape and pressing CTRL.
الإدارة الإلكترونية معوقات و تجارب
RAZGRANATA STRUKTURA Zadaci i rešenja
P.P.TEMPLATE KOREA
Click to Add Title Click to Add Subtitle.
Motivation and Background
Author names here Author association names here
Click to edit Master text styles
TITLE SLIDE GOES HERE Optional subhead.
Visual Basic: Week 5 Review User defined functions
Label Name Label Name Label Name Label Name Label Name Label Name
Click to edit Master text styles
TITLE Authors Institution
ОПШТЕСТВО ТЕМА: МЕСТОТО ВО КОЕ ЖИВЕАМ Скопје
I dragged over the label tool (A icon) and put it on the form.
1 To go to the next slide, click this button instead. A random slide will come up.
Author names here Author associations here
Author names here Author associations here
Delete text and place photo here.
STEP ONE. STEP ONE. STEP ONE. STEP ONE. STEP ONE. 02
Library Search Procedure
Click to edit Master text styles
Lorem ipsum dolores Lorem ipsum dolores.
YOUR text YOUR text YOUR text YOUR text
Presentation Title Presenter’s Name.
Click Summary Value Button to Show Source of Integral or Time
CLICK TO START.
Author names here Author associations here
CLICK TO START.
Chapter Name University Name Philanthropy and service projects
Click to edit Master text styles
CHAPTER FOUR VARIABLES AND CONSTANTS
Custom Forms with VBA in Excel In-Class Exercise #11
Call Now : Click : -
Call Now : Click : -
Call Now : Click : -
Presentation transcript:

Naredba If..Then..Else..

Procedure TForm1.Button1Click ( SEnder: Tobject ); Var x, y, Max : Integer; Begin x := StrToInt ( Edit1.Text ); y := StrToInt ( Edit2.Text ); If x > y Then Max := x Else Max := y; Label4.Caption := IntToStr ( Max ); End;

Procedure TForm1.Button1Click( SEnder: TObject ); Var a, b, c, Max : Integer; Begin a := StrToInt ( Edit1.Text ); b := StrToInt ( Edit2.Text ); c := StrToInt ( Edit3.Text ); Max := a; If b > Max Then Max := b; If c > Max Then Max := c; Label5.Caption := IntToStr ( Max ); End;

Procedure TForm1.Button1Click( SEnder: TObject ); Var x,y:integer; begin x:=StrToInt (Edit1.Text); if x<0 then y:=-1 else if x=0 then y:=0 else y:=1; Label3.Caption:=IntToStr(y); End;

Procedure TForm1.Button1Click( SEnder: TObject ); Var x1,x2,y:integer; begin x1:=StrToInt(Edit1.Text); x2:=StrToInt(Edit2.Text); if x1<x2 then y:=x1+x2 else if x1=x2 then y:=3*x1 else y:=5*x1-x2; Label4.Caption:=IntToStr(y); End;