e-mail: mtoledo@dgrfsa.gov.ar Ejercicio 1 Dim saludo As String * 10



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

Changing the Display Frequency During Scanning Within an ImageControls 3 Application

VISUAL BASIC Controls. Version 1 Trg. Div., NIC HQRs

TS2Mascot. Introduction. System Requirements. Installation. Interactive Use

Projecte/Treball Final de Carrera

Windows Driver Manual Metapace T-4 Thermal Printer Rev. 1.00

Windows Driver Manual Metapace T-1. Thermal Printer Rev. 1.00

Windows Driver Manual SRP-330 Thermal printer Rev. 1.02

THE HELLO WORLD PROJECT

PROJECT ON AIRLINE RESERVATION SYSTEM

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

Estructura de aplicación en PHP para System i

Many applications consist of one or more classes, each containing one or more methods. If you become part of a development team in industry, you may

Visual Basic and Databases

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

Introduction to Custom GIS Application Development for Windows. By: Brian Marchionni

OpenOffice.org 3.2 BASIC Guide

Siemens Applied Automation Page 1 11/26/03 9:57 PM. Maxum ODBC 3.11

Visual Basic 6 Error Handling

One Dimension Array: Declaring a fixed-array, if array-name is the name of an array

How-To Guide. Crystal Report Demo. Copyright Topaz Systems Inc. All rights reserved.

PROGRAMA DE GRAFICACIÓN DE VELOCIDADES EN VENTANAS DE MAPINFO

University of Technology. Building and Construction Department. Second Class. Visual Basic 6.0. Dr. Nisreen S. Mohammed

ClientAce WPF Project Example

National Database System (NDS-32) Macro Programming Standards For Microsoft Word Annex - 8

Hands-on Exercise 1: VBA Coding Basics

Nombre: Christopher Apellido: Cardoso Ciudad: Mülheim an der Ruhr Edad: 19 Pasatiempos: salir con mis amigos, escuchar la música

1. Create SQL Database in Visual Studio

Program to solve first and second degree equations

Sci.Int.(Lahore),26(2), ,2014 ISSN ; CODEN: SINTE 8 791

Introducing VBA Message Boxes

VB (Serial Comms) Project Components (Ctrl-T)

Final Examination Semester 2 / Year 2011

Excel & Visual Basic for Applications (VBA)

GOPAL RAMALINGAM MEMORIAL ENGINEERING COLLEGE. Rajeshwari nagar, Panapakkam, Near Padappai, Chennai

RIT Installation Instructions

Simple Dialog Box Management Handout.pdf. Detailed Instructions

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

1. a procedure that you perform frequently. 2. Create a command. 3. Create a new. 4. Create custom for Excel.

DATA 301 Introduction to Data Analytics Microsoft Excel VBA. Dr. Ramon Lawrence University of British Columbia Okanagan

UltraLog HSPI User s Guide

Applications Development

Fig. 1 The finished UserForm project.

Add an Audit Trail to your Access Database

Rental House Management System

Application For Employment/Solicitud de Empleo

Use the Visual Basic 6 APP object to polish your applications

OpenOffice.org Basic 1 -

Using Loops to Repeat Code

Visual Basic Cheat Sheet

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

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

Creating Applications using Excel Macros/Visual Basic for Applications (VBA)

Visual Basic. en.wikibooks.org

Moving from C++ to VBA

How To Create A Checkbox In Visual Basic (For A Powerpoint) With A Check Box At Run Time

Códigos fuentes aplicativo Agenda con VB.NET

manual de telefono cisco 7911 Quick Start Guide This manual de telefono cisco 7911 is in the form of independently produced user guides.

Visual Basic Programming. An Introduction

Problem 1 (2.5 points)

Welcome to: Bentley Bash Customizing MicroStation via VBA. Created by Mike Lazear Archway Systems, Inc.

KOSHUKAI UECHI RYU KENYUKAI EUROPA th to 23 rd August 2014

Chapter 12 Mouse and Keyboard

PRI-(BASIC2) Preliminary Reference Information Mod date 3. Jun. 2015

Connecting to an Excel Workbook with ADO

MANUAL TELEFONO CISCO CP For this reason manual telefono cisco cp 6921 guides are far superior than the pdf guides.

N A T I O N A L M I S S I N G P E R S O N S P R O G R A M DNA

Introduction to Visual Basic

SpectraSense. Software Developer s Kit. User s Guide. SpectraSense Software Developer s Kit User s Guide 1

with VBA

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

USB CASH DRAWER INTERFACE. Introduction

Module 6: Validating User Input

Using Loops and Timers

Check Digit Schemes and Error Detecting Codes. By Breanne Oldham Union University

SQL Desktop Application For WebService in C# dr inż. Tomasz Tatoń

'========================================================================== ==== Scans a range of A/D Input Channels

IVI Configuration Store

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

Alarms Dispatcher Cod. DOCS 11 AD-E Build 1101

Final Exam Review: VBA

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

Hands-On Lab. Client Workflow. Lab version: Last updated: 2/23/2011

PIC 10A. Lecture 7: Graphics II and intro to the if statement

SafeGuard PrivateCrypto 2.40 help

Introduction. Why (GIS) Programming? Streamline routine/repetitive procedures Implement new algorithms Customize user applications

Nombre: Today is Monday. Yesterday was. Tomorrow will be. Today is Friday. Yesterday was. Tomorrow will be. Today is Wednesday.

New words to remember

El poder de la Programación de Excel y Visual Basic User Review --->>> Enter Here More Details => VISIT HERE

TRANSITION FROM TEACHING VB6 TO VB.NET

Microsoft Access 2010 Level III

Lab Work 2. MIPS assembly and introduction to PCSpim

EXERCISE 4. Load Cases Form. Objectives: Add a callback for additional analysis information. PATRAN 305 Exercise Workbook 4-1

Transcription:

Ejercicio 1 Dim saludo As String * 10 Private Sub Command1_Click() Dim Nombre As String * 10 Nombre = "Joaquim" saludo = "HOLA" Print saludo; y; Nombre Private Sub Command2_Click() saludo = "ADIOS" Print saludo Ejercicio 2 1

Private Sub Boton_dividir_Click() Dim result As Integer result = Val(Numero_uno.Text) / Val(Numero_dos.Text) Numero_resultado.Text = Str(result) Private Sub Boton_multiplicar_Click() Dim result As Integer result = Val(Numero_uno.Text) * Val(Numero_dos.Text) Numero_resultado.Text = Str(result) Private Sub Boton_restar_Click() Dim result As Integer result = Val(Numero_uno.Text) - Val(Numero_dos.Text) Numero_resultado.Text = Str(result) Private Sub Boton_salir_Click() End Private Sub Boton_Sumar_Click() Dim result As Integer result = Val(Numero_uno.Text) + Val(Numero_dos.Text) Numero_resultado.Text = Str(result) Ejercicio 3 2

Private Sub Command1_Click() Dim result, resulta As Double result = Val(Text1.Text) * (60) Text2.Text = Str(result) resulta = Val(Text2.Text) * (60) Text3.Text = Str(resulta) Private Sub Command2_Click() End Ejercicio 4 Private Sub Azul_Click() Texto.ForeColor = &HFF0000 Private Sub Command1_Click() End Private Sub Cursiva_Click() Texto.FontItalic = True Texto.FontBold = False Private Sub Form_Load() Normal.Value = True Azul.Value = True Texto.FontBold = False Texto.FontItalic = False Texto.ForeColor = &HFF0000 3

Private Sub Negrilla_Click() Texto.FontBold = True Texto.FontItalic = False Private Sub Normal_Click() Texto.FontBold = False Texto.FontItalic = False Private Sub Verde_Click() Texto.ForeColor = &HFF00& Ejercicio 5 Private Sub Ape_GotFocus() Ape.SelStart = 0 Ape.SelLength = Len(Ape.Text) Private Sub Boton_añadir_Click() totalregistros = totalregistros + 1 If totalregistros > 50 Then MsgBox "losta completa", 16, "error" Else agenda(totalregistros).nombre = Nom.Text agenda(totalregistros).apellidos = Ape.Text agenda(totalregistros).telefono = Tel.Text agenda(totalregistros).edad = Val(Edad.Text) Lista_1.AddItem Nom.Text Lista_2.AddItem Nom.Text Nom.SetFocus 4

Private Sub Boton_eliminar_Click(Index As Integer) Dim I, B As Integer For I = 1 To totalregistros If (RTrim$(Lista_1.Text) = RTrim$(agenda(I).Nombre)) Then Exit For Next I Nom.Text = agenda(i).nombre Ape.Text = agenda(i).apellidos Tel.Text = agenda(i).telefono Edad.Text = Str(agenda(I).Edad) B = MsgBox("Eliminar Registro:" + Nom.Text, 3 + 32, "Eliminar") If B = 6 Then Lista_1.RemoveItem I - 1 totalregistros = totalregistros - 1 For j = I To totalregistros agenda(j).nombre = agenda(j + 1).Nombre agenda(j).apellidos = agenda(j + 1).apellidos agenda(j).telefono = agenda(j + 1).telefono agenda(j).edad = agenda(j + 1).Edad Next j Nom.Text = "" Ape.Text = "" Tel.Text = "" Edad.Text = "" Private Sub Boton_fin_Click(Index As Integer) End Private Sub Eda_GotFocus() Eda.SelStart = 0 Eda.SelLength = Len(Eda.Text) Private Sub Form_Load() totalregistros = 0 Private Sub Lista_2_Change() Dim n As Integer n = Lista_2.ListIndex + 1 Nom.Text = agenda(n).nombre Ape.Text = agenda(n).apellidos Tel.Text = agenda(n).telefono Eda.Text = agenda(n).edad 5

Private Sub Nom_GotFocus() Nom.SelStart = 0 Nom.SelLength = Len(Nom.Text) Private Sub Tel_GotFocus() Tel.SelStart = 0 Tel.SelLength = Len(Nom.Text) Crear un módulo Type registro Nombre As String * 15 apellidos As String * 25 telefono As String * 15 Edad As String * 3 End Type Global agenda(1 To 50) As registro Global totalregistros As Integer Ejercicio 6 Private Sub Boton_fin_Click() End Private Sub cd_click() Dim precio As Long Dim res As Long precio = 0 res = 0 If cd.value = 1 Then precio = Val(suplemento.Caption) + 20000 Else precio = Val(suplemento.Caption) = -20000 6

suplemento.caption = precio res = Val(suplemento.Caption) + Val(Total.Caption) PVP.Caption = res Private Sub Form_Load() Total.Alignment = 1 suplemento.alignment = 1 PVP.Alignment = 1 suplemento.caption = "0" Private Sub kit_click() Dim precio As Long Dim res As Long precio = 0 res = 0 If kit.value = 1 Then precio = Val(suplemento.Caption) + 35000 Else precio = Val(suplemento.Caption) = -35000 suplemento.caption = precio res = Val(suplemento.Caption) + Val(Total.Caption) PVP.Caption = res Private Sub pantalla_click() Dim precio As Long Dim res As Long precio = 0 res = 0 If pantalla.value = 1 Then precio = Val(suplemento.Caption) + 120000 Else precio = Val(suplemento.Caption) = -120000 suplemento.caption = precio res = Val(suplemento.Caption) + Val(Total.Caption) PVP.Caption = res Private Sub Ram_Click() Dim precio As Long Dim res As Long precio = 0 res = 0 If Ram.Value = 1 Then precio = Val(suplemento.Caption) + 80000 7

Else precio = Val(suplemento.Caption) = -80000 suplemento.caption = precio res = Val(suplemento.Caption) + Val(Total.Caption) PVP.Caption = res Ejercicio 7 Private Sub icono_1_click() Imagen.Picture = LoadPicture("C:\Archivos de programa\microsoft Visual Studio\Common\Graphics\Metafile\Business\computer.wmf") Private Sub icono_2_click() Imagen.Picture = LoadPicture("C:\Archivos de programa\microsoft Visual Studio\Common\Graphics\Metafile\Business\disk35.wmf") Private Sub icono_3_click() Imagen.Picture = LoadPicture("C:\Archivos de programa\microsoft Visual Studio\Common\Graphics\Metafile\Business\phone.wmf") Ejercicio 8 Dim n As Integer Private Sub btnborrar_click() If n = 0 Then MsgBox "Minimo 1 linea", 16, "Error" Exit Sub 8

Unload txtref(n) Unload txtdes(n) Unload txtcan(n) Unload txtpre(n) n = n - 1 Private Sub btnfin_click() Unload Me Private Sub btnimprimir_click() Dim i As Integer Printer.FontName = "Arial" Printer.FontSize = "10" For i = 0 To Principal.Count - 1 If TypeOf Controls(i) Is TextBox Then GoSub posición Printer.Font.Underline = False Printer.Print Controls(i).Text If TypeOf Controls(i) Is Label Then GoSub posición Printer.Font.Underline = True Printer.PrintQuality Controls(i).Caption Next i Printer.EndDoc Exit Sub posición: Printer.CurrentX = Controls(i).Left 9

Printer.CurrentY = Controls(i).Top Return Private Sub btnnueva_click() n = 1 If n > 4 Then MsgBox "Albarán completo", 16, "Error" n = 4 Exit Sub 'Referencia Load txtref(n) txtref(n).top = txtref(n - 1).Top + 350 txtref(n).visible = True txtref(n).text = "" 'Descripción Load txtdes(n) txtdes(n).top = txtdes(n - 1).Top + 350 txtdes(n).visible = True txtdes(n).text = "" 'Precio Load txtpre(n) txtpre(n).top = txtpre(n - 1).Top + 350 txtpre(n).visible = True txtpre(n).text = "" 'Cantidad Load txtcan(n) txtcan(n).top = txtcan(n - 1).Top + 350 txtcan(n).visible = True txtcan(n).text = "" Private Sub Form_Load() n = 0 Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) Dim Msg Msg = " Desea salir de la aplicación?" If MsgBox(Msg, 36, Me.Caption) = 7 Then Cancel = True 10