I have downloaded and run the custom class module, NumUpDown. Which runs fine when added to a layout through the Designer. However I am struggeling to add it at Runtime.
This is what I have done:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("main")
Dim NUD As NumUpDown
NUD.Initialize (NUD,"NUD")
NUD.Value=5
NUD.Minimum=0
NUD.Maximum =10
Activity.AddView(NUD,10,10,200,50) <<<< ERROR: Types do not match(Warning #22)
End Sub
Seams I have to change "NUD as NumUpDown" into a "View".
Is that right, and if so how do I do this?
This is what I have done:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("main")
Dim NUD As NumUpDown
NUD.Initialize (NUD,"NUD")
NUD.Value=5
NUD.Minimum=0
NUD.Maximum =10
Activity.AddView(NUD,10,10,200,50) <<<< ERROR: Types do not match(Warning #22)
End Sub
Seams I have to change "NUD as NumUpDown" into a "View".
Is that right, and if so how do I do this?