SEMAFOR.

Slides:



Advertisements
Similar presentations
The Important Thing About By. The Important Thing About ******** The important thing about ***** is *****. It is true s/he can *****, *****, and *****.
Advertisements

Visual Basic Statements Chapter 5. Relational Operators  OperationSymbol  Equal  =  Less than  <  Greater than  >  Not equal   Less than.
Mark Dixon, SoCCE SOFT 131Page 1 06 – Iteration. Mark Dixon, SoCCE SOFT 131Page 2 Session Aims & Objectives Aims –Revise Variables and Conditional execution.
Mark Dixon, SoCCE SOFT 131Page 1 10 – Enumerated Data Types & Procedure Parameters.
Introducing More Controls Text boxCheck box Option button Command button frame image.
Mark Dixon, SoCCE SOFT 131Page 1 06 – Iteration. Mark Dixon, SoCCE SOFT 131Page 2 Session Aims & Objectives Aims –To introduce the main concepts involved.
Mark Dixon, SoCCE SOFT 131Page 1 12 – Enumerated Data-Types & Pass-by-reference.
Slide 1 VB Default Controls Text Box, Check Box, Option Button & Frames.
Blank Template. Office of Research Services Template Heading Sub text in line form.
InvEasy (Project1) Please use speaker notes for additional information!
Chapter 4 P 1 Decisions and Conditions Control statements - seqeuncing - selection - repetition (picture later) - abstraction (procedure calls)
情報基礎 B Lecture 8 Takeshi Tokuyama Tohoku University Graduate School of Information Sciences System Information Sciences Design and Analysis of Information.
University of Toronto at Scarborough © Andria Hunter, Kersti Wain-Bantin CSCA01 VBA-2 1 Lecture Outline Mathematical Expressions String Concatenation Built-in.
Introduction to MIS1 Copyright © by Jerry Post Introduction to MIS Appendix 12 Visual Basic.
Week 4.  Recap – Ranges  For Each Loops  Ranges Referencing Range Objects  Set (keyword)
Basics 2. Write a macro that … … uses a popup message box to say Hello. (msgbox ”Hello”) … writes the contents of the active cell in a message box. (you.
LOAN APPLICATION Income High Medium Low Employment References Employed Unemployed Good Bad Education High Low High Low Grant Investigate Further Investigate.
More Form Tools Combo Box (displays a list) Check Box (yes/no) Frame (groups option buttons) Option Button (exclusive choice) Ref Edit (user selects cells)
Mark Dixon, SoCCE SOFT 131Page 1 18 – Enumerated Data Types and Arrays of Structures.
VBScript Conditional Statements. Conditional Statements Very often when you write code, you want to perform different actions for different decisions.
31/01/ Selection If selection construct.
1 Microsoft® Visual Basic®.NET Language # 2. 2 Flow-Control Statements If … End If Select Case … End Select For… Next Do … Loop Exit.
# 1# 1 Nested If Statements in VBA What is a compound condition that we evaluate? What is a Nested If statement? How do we use ElseIf? CS 105 Spring 2010.
Introduction to Macros in Excel Franco Musso. ActiveCell.Offset.
Using a Database Access97 Please use speaker notes for additional information!
Copyright © Don Kussee 1410-Ch5 #1031 CNS 1120 Chapter 5 Selection statements 1120-Ch5.PPT.
CheckBox i Option Button. Private Sub Command1_Click() Check1 = 1 If Check1 = 1 Then Text1.FontBold = True Else Text1.FontBold = False End If Check2 =
Financial Information Management VB, VBA, VS, VSTO & VBE: Putting it all together Source: Excel VBA Programming by John Walkenbach.
© Stefano Grazioli - Ask for permission for using/quoting: Source: Excel VBA Programming by John Walkenbach.
Test1 Here some text. Text 2 More text.
11 – Enumerated Data Types, & Procedure Parameters
Insert Presentation Title Here Insert Presentation Summary Here
البرمجة بلغة فيجول بيسيك
The Check Box Control Consists of a small square and a caption
مراحل كتابة البرنامج بلغة فيجول بيسك ستديو
Chapter 6 - Visual Basic Schneider
1.الدوال Function 2.الاجراءاتSub Procedure 3.وحده نمطيه Add Module
InputBox i naredba IF.
Header Title Header Title Header Title Header Title Header Title
المحاضرة السادسة.
[type text here] [type text here] [type text here] [type text here]
Your text here Your text here Your text here Your text here Your text here Pooky.Pandas.
CE 525.
Evolution from VBA V1 to V2 (Numerics)
1 2 3 STAIRS This is an example text. This is an example text.
Your text here Your text here Your text here Your text here
CheckBox i Option Button
Data Types List Box Combo Box Checkbox Option Box Visual Basic 6.0
Conditional Statements
Conditional Logic Presentation Name Course Name
[type text here] [type text here] [type text here] [type text here]
Active-X Calendar Control
OptionButton, CheckBox компоненттері
OptionButton, CheckBox компоненттері
Insert Presentation Title Here Insert Presentation Summary Here
Please insert Title Please insert sub-title 1
Put the title here Here is the sub-title.
Put the title here Here is the sub-title.
Text for section 1 1 Text for section 2 2 Text for section 3 3
GCSE Computing:: Selection (IF statements)
More on If statements (Calculate, Calculate1, Calculate2)
Text for section 1 1 Text for section 2 2 Text for section 3 3
Text for section 1 1 Text for section 2 2 Text for section 3 3
Insert Presentation Title Here Insert Presentation Summary Here
Sub 範例 Sub F ( X ) MsgBox(X ^ 2 ) End Function
ME 123 Computer Applications I Lecture 11: More on For loop 3/27/03
Text for section 1 1 Text for section 2 2 Text for section 3 3
Text for section 1 1 Text for section 2 2 Text for section 3 3
Text for section 1 1 Text for section 2 2 Text for section 3 3
Text for section 1 1 Text for section 2 2 Text for section 3 3
Presentation transcript:

SEMAFOR

Dugme poništi Private Sub cmdponisti_Click() Txt1 = "" CRVENA.BackColor = vbWhite ZUTA.BackColor = vbWhite ZELENA.BackColor = vbWhite End Sub

Dugme PROVJERI TEXT Private Sub cmdprovjeritext_Click() Txt1 = UCase(Txt1) If Txt1 = "CRVENA" Then CRVENA.BackColor = vbRed Else CRVENA.BackColor = vbWhite End If If Txt1 = "ZUTA" Then ZUTA.BackColor = vbYellow ZUTA.BackColor = vbWhite If Txt1 = "ZELENA" Then ZELENA.BackColor = vbGreen ZELENA.BackColor = vbWhite End Sub

If Txt1 = "crvena" Or Txt1 = "CRVENA" Or Txt1 = "Crvena" Then CRVENA.BackColor = vbRed Else CRVENA.BackColor = vbWhite End If If Txt1 = "zuta" Or Txt1 = "ZUTA" Or Txt1 = "Zuta" Then ZUTA.BackColor = vbYellow ZUTA.BackColor = vbWhite If Txt1 = "zelena" Or Txt1 = "ZELENA" Or Txt1 = "Zelena" Then ZELENA.BackColor = vbGreen ZELENA.BackColor = vbWhite

If Txt1 = "crvena" Or Txt1 = "CRVENA" Or Txt1 = "Crvena" Then CRVENA.BackColor = vbRed ElseIf Txt1 = "zuta" Or Txt1 = "ZUTA" Or Txt1 = "Zuta" Then ZUTA.BackColor = vbYellow ElseIf Txt1 ="zelena" Or Txt1 ="ZELENA" Or Txt1 ="Zelena"Then ZELENA.BackColor = vbGreen Else MsgBox ("nije ni jedna od trazenih boja") End If

Private Sub cmdprovjerioption_Click() If Opt1 = True Then CRVENA.BackColor = vbRed Else CRVENA.BackColor = vbWhite End If   If Opt2 = True Then ZUTA.BackColor = vbYellow ZUTA.BackColor = vbWhite If Opt3 = True Then ZELENA.BackColor = vbGreen ZELENA.BackColor = vbWhite End Sub

If Opt1=True Then CRVENA.BackColor = vbRed ZUTA.BackColor = vbWhite ZELENA.BackColor = vbWhite ElseIf Opt2=True Then ZUTA.BackColor = vbYellow CRVENA.BackColor = vbWhite ElseIf Opt3=True Then ZELENA.BackColor = vbGreen End if