B
Bob
Hi,
I compiled an application for the first time with no errors but following
warnings:
1) variable declaration withoit an 'AS':
Dim def()
2) variable 'myvar' is used before it has been assigned a value:
Dim myvar
......
If wk = 1 Then
myvar = "yes"
ElseIf wk = 2 Then
myvar = "no"
End If
.......
3) unused variable: myvar2
Warning 3) is easy to solve: remove it.
Warning 1): is it important to specify (e.g. dim def() as string)? Can this
cause a run-time error?
Warning 2): is this a problem? Can i leave it like this (i'm sure 'myvar'
will get a value, so no risk of run-time error ...)
Thanks for advice
Bob
I compiled an application for the first time with no errors but following
warnings:
1) variable declaration withoit an 'AS':
Dim def()
2) variable 'myvar' is used before it has been assigned a value:
Dim myvar
......
If wk = 1 Then
myvar = "yes"
ElseIf wk = 2 Then
myvar = "no"
End If
.......
3) unused variable: myvar2
Warning 3) is easy to solve: remove it.
Warning 1): is it important to specify (e.g. dim def() as string)? Can this
cause a run-time error?
Warning 2): is this a problem? Can i leave it like this (i'm sure 'myvar'
will get a value, so no risk of run-time error ...)
Thanks for advice
Bob