• Tidak ada hasil yang ditemukan

Visual basic sebagai pusat kendali

N/A
N/A
Protected

Academic year: 2018

Membagikan "Visual basic sebagai pusat kendali "

Copied!
3
0
0

Teks penuh

(1)

Variables 2

Dim nomentero AS Integer = 1 Dim nomdecimales AS Double = 1.54 Dim nomtexto AS String = “Hola” Dim nomfecha AS Date = “01-01-12”

Leer ____MsgBox(nomentero)

MsgBox(texto + texto2)

Array 3

Dim arreglo (3) As String Arreglo (0) = “hola”

Arreglo(1) = “código”

Arreglo(3)= “mundo”

Dim arreglo () As Integer

Arreglo = New Integer () {1, 2, 3}

MsgBox (arreglo(0).ToString+ “”+arreglo(1).ToString+””+arreglo(2).ToString)

ReDim Preserve arreglo (2)

Dim matriz (,) As Integer = { {1, 2, 3}, {4,5,6}}

Botones 6

Dim num As integer

Num1= txtNum1. Text

(2)

Operadores comparativos 7

Dim resutado As Boolean

Resultado = 1 =2

MsgBox (resultado)

Operadores Logicos 8

Dim resultado As Boolean

Resultado = (1=1) And (2=2)

Resultado = (1=1) Or (2=2)

Resultado = Not (1=1)

Resultado ( (1=1) and (2=1) ) or (3=3)

IF 9

Dim num1, num2 As integer

Num1= txtNum1. Text

Num2=txtNum2. Text

If (num1=num2) Then

ElseIf (num1 >num2)

Else

EndIf

MsgBox (resutado)

If (txtNum1.Text.Contains(“facilito”)) then

MsgBox…

Radiobutoon 10

If (suma.checked = True) then

Resultado = n1 + n2

elseIf (resta.Checked =true) then

(3)

Checkbox 11

If Me.rock.Checked = true then

Rock= true

Ciclo For 12

Dim i As integer

For i = 0 To 4

Dim arreglo(10) As integer

Dim i As Integer

For i = 0 to 9

Arreglo (i)=i+1

Msgbox (“Arreglo(“+i.Tostring+”)=”+arreglo(i).ToString)

Referensi

Dokumen terkait

SISTEM KEI\'DALI PDRANCXAT ELII'IRONII( MtrNGCUNAXAN 3LUNTOOTH BtrRBASTS KOMPIITf,

Reescribe . En la línea de desmitificar la inspiración y la genialidad asociadas a los textos,  diré que un buen texto no sale a la primera. 

Berdasarkan pemaparan diatas maka penulis tertarik untuk membuat simulasi kendali katup(valve) dengan algoritma Logika Fuzzy yang dipengaruhi oleh 2 (dua)

del final del alargue (para darle una coloración trágica al resultado que cuadra bien con el sentimiento argentino) estuvo organizado por Fuerza Bruta, o bien esta selección es

El papel de la sociedad delante de un niño que tenga una discapacidad visual es sumamente importante para que el niño se sienta integrado, considerado y respetado. Un niño con

The ListBox control accepts string values, so, by specifying that you wanted to add the Customer structure to the list box, Visual Basic 2008 called the. ToString method of the

J.u\Jersit ~ !\e\Jersit EL A,MOR El amor es el fuego que en las venas circula, el amor es el alma que mueve el Universo¡ es la magna belleza que los cielos azula, vibra en el

bersih AdodcMhs.Recordset.Update MsgBox "Data Sudah Dihapus" 'Refresh Adodc agar data langsung berubah pada datagrid AdodcMhs.Refresh 'di set agar hanya tombol TAMBAH dan KELUAR yg