I am trying to upgrade an old visual basic program and have hit one problem.
The use of InputBox() fails with "InputBox is not declared". Error BC30451
Various sources say it is a member variously of Microsoft.VisualBasic or Microsoft.VisualBasic.Interaction namespaces
But
Dim s as string= Microsoft.VisualBasic.Inputbox("Enter organisation name")
and
Dim s as string= Microsoft.VisualBasic.Interaction.Inputbox("Enter organisation name")
both fail with error BC30456 telling me that 'InputBox' is not a member of either of those namespaces
Is InputBox still usable and how do I find it? I really don't want to have to code up a new form for this unless I have to.
Thanks
The use of InputBox() fails with "InputBox is not declared". Error BC30451
Various sources say it is a member variously of Microsoft.VisualBasic or Microsoft.VisualBasic.Interaction namespaces
But
Dim s as string= Microsoft.VisualBasic.Inputbox("Enter organisation name")
and
Dim s as string= Microsoft.VisualBasic.Interaction.Inputbox("Enter organisation name")
both fail with error BC30456 telling me that 'InputBox' is not a member of either of those namespaces
Is InputBox still usable and how do I find it? I really don't want to have to code up a new form for this unless I have to.
Thanks