Annoyance1)
Code:
If objReferrence IsNotNothingAndAlsoNotString.IsNullOrEmpty(objReferrence.value) Then
Why not define a Shared property in a module?
Code:
PublicModuleModuleIs1
'verify reference points to an object, and it's value is valid
PublicReadOnlyProperty IsProperObjectAndValue(objReferrence AsObject) AsBoolean
Get
Return objReferrence IsNotNothingAndAlsoNotString.IsNullOrEmpty(objReferrence.value)
EndGet
EndProperty
o o o
EndModule
then use the following line instead:
Code:
If IsProperObjectAndValue(objReferrence) Then
Willl this not be more readable?
2) I have tried to do the same for
IsPostBack, as follows:
Code:
PublicReadOnlyProperty IsFirstPageRequest AsBoolean
Get
ReturnNotPage.IsPostBack
EndGet
EndProperty
NOTE: the expression in red causes an error.
Any suggestions to correcting the problem?
Thanks,
Michael Kaftor