I have a Code module that I want to share a function with two Activities. I want to get the Activity.Width and Activity.Height values.
I have this in my Code module:
Sub Load_Screen_Resolution(Activity)
If Activity.Width > Activity.Height Then
' do something
End If
and I am calling it from my Main module like this:
Load_Screen_Resolution(Activity)
But the compiler doesn't like it. I thought I could call Load_Screen_Resolution() from Main and my Setup activity like so:
'from Main Activity
Load_Screen_Resolution(Activity)
'from Setup Activity
Load_Screen_Resolution(Activity)
I guess I'm not doing this right.