Содержание
- 2. Main steps during task solving goal of the task; mathematical model; algorithm; structure of the data;
- 3. Control names Name of a control is set up with Name property. Default names are: UserForm1;
- 4. Common prefixes
- 5. Naming rules No more than 40 symbols. Names should be easy to read and understand txtNewPrice,
- 6. Dot notation . txtPrice.Text = 0 txtPrice.BackColor = vbYellow txtPrice.Visible = False Each control has its
- 7. Variables and constants Variables are used to store interim values Dim operator is used to describe
- 8. Variable description [Public|Private] Dim As Data type – set of possible values for this variable Dim
- 9. Typical data types
- 10. Constant description [Public|Private] Const = Value Const PI = 3.14159265 Const Rate$ = 22.45 Const CompanyName=
- 11. Boolean data type The statement – is a sentence which can be true or false.
- 12. Logical operations Operand – value that takes part in operations Logical NOT is statement that is
- 13. Date and time datatype 8 bytes in memory Default USA format: #m/d/yy h:mm:ss# #9/23/06 19:40#
- 14. Functions to work with data
- 15. Interval values for DateAdd and DateDiff DateAdd("m",3,Date) – add 3 months to date, DateDiff("ww",#1.01.2001#,Date) – amount
- 16. Transform to type functions
- 17. Priority of operations 1. Arithmetical, 2. Comparison, 3. Logical. Logical: 1) Negation (Not); 2) Logical AND
- 18. Variable assignment variable = value Firstly value on the right side is calculated, then result is
- 19. Application with different data types Data type is assigned using Dim operator. You may use only
- 20. Назначение условного оператора Разветвляющийся процесс – из нескольких вариантов выбирают только один, причем выбор зависит от
- 21. Conditional operator One-line model is used when each branch contains no more than single operator Block
- 22. One-line model If Condition Then Operator1 Else Operator2 If a > b Then max = a
- 24. Скачать презентацию