Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NoDefault Equivalent in .NET
Message
 
To
14/01/2009 14:20:28
Jarid Griesel
The Innovix Technology Group (Pty) Ltd
Johannesburg, South Africa
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01373673
Message ID:
01374016
Views:
21
There isn't as simple an equivalent as in vfp.

There are some minor variations depending on the .net language.

In C# for example the method you want to override has to be 'virtual' (Overridable in vb) in the parent (base) class otherwise the compiler generates an error.

Like this:

public class aBaseClass

{

public virtual void DoSomething()

{

//doing something
}

}



public class anotheClass : aBaseClass
{
public override void DoSomething()


{

//doing something else

}

}



>HI All
>
>Is there an equivalent to the VFP NoDefault command in .NET ?
>Or is one forced into the paradigm of Overides Methods ?
>
>
>TIA
Mathias Banda

Time is longer than a rope.
Previous
Reply
Map
View

Click here to load this message in the networking platform