EUROCALCULADORA. Option Compare Database. Private Sub Comando4_Click() [pesetas] = [euros] * 166.386 End Sub



Similar documents
How-To Guide. SigCard1 (With Microsoft Access) Demo. Copyright Topaz Systems Inc. All rights reserved.

Estructura de aplicación en PHP para System i

Sub OPT() j = 1 k = 1 m = 1 n = 1 o = 1 g = 1 h = 1

Room 3. Homework outline for Room #3 K4 Bilingual Mrs. Perez. Please note this will be for the entire week ending November 1, 2013

Library Services. Servicios de la Biblioteca Special Needs Communication Guide Guía de Comunicación para Necesidades Especiales

Física Computacional Conceptos de programación.

A Microsoft Access Based System, Using SAS as a Background Number Cruncher David Kiasi, Applications Alternatives, Upper Marlboro, MD

l McConnell Public Safety and Transportation Operations Center

Annual Notice of Changes for 2015

Industrial communication. solutions for Windows

Hands-on Exercise 1: VBA Coding Basics

REC language is a live on IBM1130 simulator

2010 SIM TFWG Workshop and Planning Meeting Agenda

Connecting to an Excel Workbook with ADO

Trabajo Fin de Grado

Linguagem Programação Estruturada Prof. Dr. Chau S. Shia

Annual Notice of Changes for 2015

Tema: Encriptación por Transposición

Final Exam Review: VBA

TS2Mascot. Introduction. System Requirements. Installation. Interactive Use

Correcting the software of the 40cm astrograph control system at Centro Astronómico de Yebes. T. Alonso Albi Informe Técnico IT-OAN

-WE LOVE YOU PARENTS! Thank you for all that you do! If your child is have trouble with homework, /TEXT us and we will help you!

SUMM ER SCHOOL Royal Spanish Volleyball Federation. Language, culture & visits. Volleyball training. Spanish classes.

PROGRAMA DE GRAFICACIÓN DE VELOCIDADES EN VENTANAS DE MAPINFO

Inteligencia Artificial Representación del conocimiento a través de restricciones (continuación)

RA Cairncross Trip Summary Ecuador and El Salvador

A Concise Guide for Beginners LIEW VOON KIONG

Appendix H: Control System Computational Aids

Bucle for_in. Sintaxis: Bucles for_in con listas. def assessment(grade_list): """ Computes the average of a list of grades

SAMPLE EXAMEN DE LECTURA IPT READING. Grades K-1. Spanish PROFICIENCY TESTS IDEA

STUDENT OBJECTIVES. Lección 1 Descubre 1. STUDENT OBJECTIVES Lección 1 Descubre 1. Objetivos: Fotonovela Fecha

Chapter 12 Intellectual Development from One One to Three to Three

How To Vote In A Texanian Primary Election

3211, Shawnee Industrial Way Suite 104 Suwanee GA USA Phone : Fax : sales.usa@packr.com

Manejo Basico del Servidor de Aplicaciones WebSphere Application Server 6.0

Using the For Each Statement to 'loop' through the elements of an Array

ACTIVITY # Dear Parent, Carta a los Padres. pbskids.org

A Comparison of SAS versus Microsoft Excel and Access s Inbuilt VBA Functionality Jozef Tarrant, Amadeus Software Ltd., Oxford, UK

a) What is the major difference between a program that runs under a virtual machine vs. one that does not?

How To Write A Programaci\U00F3N I.O.Com.Io.Io (Programaci\U00F3N)

HPN Product Tools. Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

SPA 131 Elementary Spanish I Spring 2013

Guia do Usuário de Criptografia de A integridade de suas informações é muito importante para nós Índice... 5

Telling and asking for the time.

Algoritmo de PRIM para la implementación de laberintos aleatorios en videojuegos

High-Level Programming Languages. Nell Dale & John Lewis (adaptation by Michael Goldwasser)

Providing Password Protection to Excel Reports for Distribution in s

Práctica 1: PL 1a: Entorno de programación MathWorks: Simulink

Tick Data Prices and Volumes

ECCAIRS 5 Instalación

Moving from C++ to VBA

SOLICITUD DE DEVOLUCIÓN, REALIZADA POR UN CONTRIBUYENTE, DE RETENCIONES SOBRE DIVIDENDOS OBTENIDOS A PARTIR DE 1 DE ENERO DE 2011.

K-Means Clustering Tutorial

Great Schools Community Conversations Near Northeast. Welcome!

LISTADO DE ASIGNATURAS IMPARTIDAS EN INGLÉS - 2º semestre LIST OF COURSES TAUGHT IN ENGLISH - Spring Semester

Guía del Alumno. Inglés. Mantenimiento, Operación y Diseño con Dispositivos y Circuitos Electrónicos Digitales

Schema XML_PGE.xsd. element GrupoInformes. attribute XML_PGE.xsd unqualified qualified

LINIO COLOMBIA. Starting-Up & Leading E-Commerce. Luca Ranaldi, CEO. Pedro Freire, VP Marketing and Business Development

PULSE Automation programming in Visual Basic. From BK training lectures arranged by Jiří Tůma & Radovan Zadražil

Classe AGI - PHP 5.x

Abstract. Introduction. System Requirement. GUI Design. Paper AD

Changing the Display Frequency During Scanning Within an ImageControls 3 Application

Program to solve first and second degree equations

UNIVERSIDADES PÚBLICAS DE LA COMUNIDAD DE MADRID PRUEBA DE ACCESO A ESTUDIOS UNIVERSITARIOS (LOGSE) Curso (Modelo)

Add an Audit Trail to your Access Database

The While Loop. Objectives. Textbook. WHILE Loops

'NSIA Senegal ' bibliotheque de calcul des fonctions actuarielle. 'stocker les tables sur une feuille avec les noms 'EnsTable 'masquer la feuille

OpenOffice.org 3.2 BASIC Guide

School of Electrical, Electronic and Telecommunication Engineering, Universidad Industrial de Santander, Colombia.

Feliz Cumpleaños!- Grade Two Happy Birthday!

FORMULARIO DE INSCRIPCIÓN

5438A/ A/ REF. 3873A/ x max 18 W E27. Medidas / Size: Dibujo Acabados / Finishes Color / Colour:

QUIZ-II QUIZ-II. Chapter 5: Control Structures II (Repetition) Objectives. Objectives (cont d.) 20/11/2015. EEE 117 Computer Programming Fall

Entrenamiento a Embajadores Ambassador training

Business Continuity Management. February 2013

Boolean Expressions, Conditions, Loops, and Enumerations. Precedence Rules (from highest to lowest priority)

Galway Chronicle. Volume 5, Issue 10 January 9, 2015

2. Please read carefully, print neatly and complete the entire Enrollment Form, including the Enrollment Checklist.

Copia Certificada Beglaubigte Abschrift Certified Copy Copie Certifiée Copia Autenticata

Summary of Benefits. Blue Cross Community Integrated Care Plan (ICP) SM. January 1, December 31, 2015

Practice Questions. CS161 Computer Security, Fall 2008

Tablet. Tablet 7 3G Jet 703 PMID703GK

Visual Basic 6 Error Handling

RISC Processor Simulator (SRC) INEL 4215: Computer Architecture and Organization September 22, 2004

Transcription:

PROGRAMACIÓN ACCESS 1 EUROCALCULADORA Private Sub Comando4_Click() [pesetas] = [euros] * 166.386 Private Sub Comando5_Click() [euros] = [pesetas] / 166.386 Private Sub GENERA_Click() intentos = 0 Randomize Timer secreto = Int(Rnd * 100) + 1 Private Sub numero_afterupdate() mensaje = "" If numero = secreto Then mensaje = "acerto" If numero > secreto Then mensaje = "es menor": intentos = intentos + 1 If numero < secreto Then mensaje = "es mayor": intentos = intentos + 1

PROGRAMACIÓN ACCESS 2 RESOLUCIÓN ECUACIÓN 2º GRADO Private Sub RESUELVE_Click() Dim d d = b * b - 4 * a * c If d = 0 Then x1 = -b / (2 * a) x2 = x1 texto = "SOLUCIÓN DOBLE" ElseIf d < 0 Then texto = "NO HAY SOLUCIÓN REAL" Else x1 = (-b + Sqr(d)) / (2 * a) x2 = (-b - Sqr(d)) / (2 * a) texto = "SOLUCIONES DISTINTAS" LETRA DEL NIF Private Sub DNI_AfterUpdate() ALFABETO = "TRWAGMYFPDXBNJZSQVHLCKE" X = DNI Mod 23 LETRA = Mid(ALFABETO, X + 1, 1)

PROGRAMACIÓN ACCESS 3 RELOJ DIGITAL Private Sub ACTIVAR_Click() Me.TimerInterval = 10 Private Sub Comando12_Click() horas = horas + 1 If horas = 24 Then horas = 0 Private Sub Comando17_Click() minutos = minutos + 1 If minutos = 60 Then minutos = 0 Private Sub Comando18_Click() segundos = segundos + 1 If segundos = 60 Then segundos = 0 Private Sub Comando19_Click() centesimas = centesimas + 1 If centesimas = 100 Then centesimas = 0 Private Sub Comando20_Click() horas = horas - 1 If horas = -1 Then horas = 23 Private Sub Comando23_Click() minutos = minutos - 1 If minutos = -1 Then minutos = 59 Private Sub Comando24_Click() segundos = segundos - 1 If segundos = -1 Then segundos = 59 Private Sub Comando25_Click() centesimas = centesimas - 1

PROGRAMACIÓN ACCESS 4 If centesimas = -1 Then centesimas = 99 Private Sub DETENER_Click() Me.TimerInterval = 0 Private Sub Form_Timer() centesimas = centesimas + 1 If centesimas = 100 Then centesimas = 0 segundos = segundos + 1 If segundos = 60 Then minutos = minutos + 1 segundos = 0 If minutos = 60 Then horas = horas + 1 minutos = 0 If horas = 24 Then horas = 0 Private Sub RESET_Click() centesimas = 0 segundos = 0 minutos = 0 horas = 0 JUEGO AHORCADO Private Sub Form_Timer() acerto.visible = Not acerto.visible Private Sub letra_afterupdate() Dim X, ACIERTO X = palabra

PROGRAMACIÓN ACCESS 5 ACIERTO = 0 For I = 1 To Len([secreta]) If LETRA = Mid$([secreta], I, 1) Then Mid([X], I, 1) = [LETRA] ACIERTO = 1 Next I If ACIERTO = 0 Then fallos = fallos + 1 Select Case fallos Case 1: dibujo = " O " Case 2: dibujo = dibujo + "/" Case 3: dibujo = dibujo + "H" Case 4: dibujo = dibujo + "\" Case 5: dibujo = dibujo + "I" Case 6: dibujo = dibujo + "I" Case 7: dibujo = "!" + dibujo End Select palabra = X If palabra = secreta Then Me.TimerInterval = 500 Private Sub letra_enter() secreta.visible = False Private Sub secreta_afterupdate() palabra = "" dibujo = "" For I = 1 To Len([secreta]) palabra = palabra & "-" Next I fallos = 0 ESCRITURA FICHERO Private Sub CREAR_Click() Open "PROBANDO" For Output As #1 ' Abre el archivo para operaciones de salida. For I = 1 To 1000 Print #1, I; Next I Close #1 mensaje.visible = True

PROGRAMACIÓN ACCESS 6 LECTURA DE FICHERO Private Sub LEER_Click() Dim numero Open "PROBANDO" For Input As #1 ' Abre el archivo para operaciones de salida. Do While Not EOF(1) Input #1, numero Lista1.AddItem Str(numero) Loop Close #1 PROPIEDADES TEXTO Private Sub AUMENTA_Click() Texto0.FontSize = Texto0.FontSize + 1

PROGRAMACIÓN ACCESS 7 Private Sub COLOR_Click() Texto0.ForeColor = RGB(ROJO, VERDE, AZUL) Private Sub CURSIVA_Click() Texto0.FontItalic = Not Texto0.FontItalic Private Sub DISMINUYE_Click() Texto0.FontSize = Texto0.FontSize - 1 Private Sub NEGRITA_Click() Texto0.FontBold = Texto0.FontBold * -1 + 1 Private Sub SUBRAYADO_Click() Texto0.FontUnderline = Not Texto0.FontUnderline OPERACONES ARITMÉTICAS Private Sub Comando20_Click() SUMANUMEROS = N1 + N2 RESTANUMEROS = N1 - N2 PRODUCTO = N1 * N2 DIVISION = N1 / N2 COCIENTE = N1 \ N2 RESTO = N1 Mod N2

PROGRAMACIÓN ACCESS 8 EJEMPLOS DE BUCLES Private Sub BUCLEFOR_Click() SALTO = 1 If INICIO > FIN Then SALTO = -1 For X = INICIO To FIN Step SALTO Lista0.AddItem X Private Sub BUCLEUNTIL_Click() SALTO = 1 If INICIO > FIN Then SALTO = -1 X = INICIO Do Until X = FIN Lista0.AddItem X X = X + SALTO Loop Lista0.AddItem X Private Sub BUCLEWHILE_Click() SALTO = 1 If INICIO > FIN Then SALTO = -1 X = INICIO Do While X <> FIN Lista0.AddItem X X = X + SALTO Loop Lista0.AddItem X Private Sub ELIMINAR_Click() ELEMENTOS = Lista0.ListCount For X = 1 To ELEMENTOS Lista0.RemoveItem 0

PROGRAMACIÓN ACCESS 9 Public Function factorial(n As Integer) As Variant If n = 0 Or n = 1 Then factorial = 1 Else factorial = factorial(n - 1) * n End Function Private Sub CALCULA_Click() If valor >= 0 Then resultado = factorial(valor) MÉTODOS ORDENACIÓN Dim a(300) As Variant Private Sub BORRAR_Click() For X = 1 To 300 Lista0.RemoveItem 0 Private Sub BURBUJA_Click() For X = 1 To 300 Lista0.RemoveItem 0

PROGRAMACIÓN ACCESS 10 For X = 299 To 0 Step -1 For y = 1 To X If a(y) > a(y + 1) Then aux = a(y) a(y) = a(y + 1) a(y + 1) = aux Next y For X = 1 To 300 Lista0.AddItem a(x) Private Sub GENERA_Click() For X = 1 To 300 a(x) = Int(Rnd * 1000) Lista0.AddItem a(x) Private Sub SHELL_Click() For X = 1 To 300 Lista0.RemoveItem 0 ODENADO = False Do While Not ORDENADO ORDENADO = True For y = 1 To 299 If a(y) > a(y + 1) Then aux = a(y) a(y) = a(y + 1) a(y + 1) = aux ORDENADO = False Next y Loop For X = 1 To 300 Lista0.AddItem a(x) ESTRUCTURA SELECT CASE Private Sub nacimiento_afterupdate() Select Case dia Case 1 texto = "Domingo"

PROGRAMACIÓN ACCESS 11 Case 2 texto = "Lunes" Case 3 texto = "Martes" Case 4 texto = "Miercoloes" Case 5 texto = "Jueves" Case 6 texto = "Viernes" Case 7 texto = "Sabado" End Select CALCULADORA Private Sub BOTON0_Click() PANTALLA = PANTALLA & "0" Private Sub BOTON1_Click() PANTALLA = PANTALLA & "1" Private Sub BOTON2_Click() PANTALLA = PANTALLA & "2" Private Sub BOTON3_Click() PANTALLA = PANTALLA & "3" Private Sub BOTON4_Click() PANTALLA = PANTALLA & "4"

PROGRAMACIÓN ACCESS 12 Private Sub BOTON5_Click() PANTALLA = PANTALLA & "5" Private Sub BOTON6_Click() PANTALLA = PANTALLA & "6" Private Sub BOTON7_Click() PANTALLA = PANTALLA & "7" Private Sub BOTON8_Click() PANTALLA = PANTALLA & "8" Private Sub BOTON9_Click() PANTALLA = PANTALLA & "9" Private Sub BOTONC_Click() PANTALLA = "" Private Sub COMA_Click() PANTALLA = PANTALLA & "." Private Sub DIVIDE_Click() PANTALLA = PANTALLA & "/" Private Sub IGUAL_Click() PANTALLA=REPLACE(PANTALLA,,,. ) PANTALLA = Eval(PANTALLA) Private Sub MAS_Click() PANTALLA = PANTALLA & "+" Private Sub MENOS_Click() PANTALLA = PANTALLA & "-" Private Sub POR_Click() PANTALLA = PANTALLA & "*" Private Sub Comando21_Click() On Error GoTo Err_Comando21_Click DoCmd.Close Exit_Comando21_Click: Exit Sub Err_Comando21_Click: MsgBox Err.Description Resume Exit_Comando21_Click

PROGRAMACIÓN ACCESS 13