Hi, Using WinForm, Adapter 2.5 & VB
Am extending the RemotingServices example and have a dumb question
In my Gui I can use the following code to fetch Customer("CHOPS") via the GetCustomer method in CustomerManager.
Dim customer as New CustomerManager
BindingSource1.DataSource = customer.GetCustomer("CHOPS")
If I now use a CustomerManager interface, how do I get round the fact that the New keyword cannot be used on an Interface?
If I do the following:
Dim customer as ICustomerManager
BindingSource1.DataSource = customer.GetCustomer("CHOPS")
... is it safe to ignore the warning Variable 'customer' is used before it has been assigned a value ?
Thanks