Reference to a non-shared member requires an object reference
Posted on 2007-10-13
I have a bit of a problem here. Working with VB.net as an AddOn in SAP Business One.
The problem is related to the .Net so no worries about needing SAP knowledge. I have a Class that calls another Class if the User executes a button click on the calling form. When leaving the called form I want to refresh the calling form but I am getting an error which I really don't understand. To refresh I have a subroutine in the calling form called FillBOMTab.
Public Class ItemTypeMaint
Public Sub FillBOMTab(ByVal ItNum As String)
Dim ItemTypeROUTINGForm As New LBSI_ItemTypeROUTING(ItemNum, SelectedRoutingRowCode, Mode)
From the called form I attempt to reference FillBOMTab be qualifying it with the Project and called form reference --> Enhance.ItemTypeMaint.FillBOMTab(RoutingItemNumPassed). However, I am getting the following error:
Reference to a non-shared member requires an object reference. How do I do that?
Not sure if this is enough info to explain my problem. So, feel free to ask questions.
Thanks for the help,