Instructions Visual Basic
 

  Affectation

            exemple:

            lblTpatins.Caption = Val(txtBleu.Text) + Val(txtJaune.Text)

 Calcul (opérateurs mathématiques)

            +          Addition

            -          Soustraction

  *          Multiplication

           /           Division

           \           Division entière

         Mod       Modulo arithmétique

           ^          Élévation d'un nombre à une certaine puissance

           -           Négation

 Envoyer le focus à (txtNom)

            txtNom.SetFocus

 Commentaire

            ' faire précéder le commentaire par une apostrophe ( ' )

 Format

            Format(expression, format)

            Exemple:

            lblPtotal.Caption = Val(lblTPatins.Caption) * Val(txtPrix.text) * (1 + Val(txtTaux.text))

            lblPtotal.Caption = Format(lbl.PTotal.Caption, "currency")

 Imprimer

            PrintForm

 Terminer

            end

 Valeur par défaut pour (txt.Nom)

            txt.Nom= ""

 Valeur numérique

            Val(chaine)

 Rendre visible (lblAnnee)

            lblAnnee.Visible=True