Lesson#4 Properties, Methods and Parameters Flashcards

1
Q

What are properties?

A

The characteristics or attributes that describe an object.

i.e. The Looks and Behaviours

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are methods?

A

The actions you carry out with, or on, an object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What 2 things can you do when working with properties?

A
  1. Specify (write) the properties value.

2. Read the properties current value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What 2 things can you do when working with methods?

A
  1. Carry out the action method.

2. Create a new object or return a value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What can you do with parameters or values?

A

Write the new the value of a property or further specify the behaviour of a property/method.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What happens if you omit an optional parameter?

A

VBA uses it’s default value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the structure of a VBA statement that works with method parameters?

A

Object.Method ParameterList

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do you separate a parameter name from it’s value?

A

:=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do you structure a VBA statement when you are looking to use a method to create a new object or value?

A

Wrap the parameter list within parentheses instead of using a space.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the structure of a VBA statement that works with property parameters?

A

Object.Property(ParameterList)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the structure of a VBA statement that specifies a new property value?

A

Object.Property = NewPropertyValue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the 2 main rules to consider when specifying a new property value?

A
  1. You usually specify a single value.

2. You use the assignment operator. (=)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you separate Parameters in a list?

A

Comma and a space.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly