Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom property, methods in VB????
Message
From
31/01/2000 12:36:45
 
 
To
31/01/2000 11:58:47
Annie Joy Araneta
S2S Software Solutions, Inc.
Manila, Philippines
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00325073
Message ID:
00325115
Views:
17
>In VFP, we can create custom property and methods for specific form use only. So, I can have code like this:
>
>*Assign value to custom property. This property will be available in the entire module which serves as a variable.
>
>
Form1.MyCustomProperty1 = 10000
>
>*Call the form's custom method. This method will be available within the module only which serves as a procedure.
>
>
Form1.MyCustomMethod()
>
>Can we do it in VB???


Yes.
A public variable declared in the general section of a form result in a form property.
See also Property Let and Get if you want to do validation.

A public sub or function in a form result in a form method.
Guy Barrette, MCSD
============
Blog http://weblogs.asp.net/guybarrette
Microsoft Regional Director, Montreal, Canada www.microsoft.com/rd
MVP, ASP.NET http://mvp.support.microsoft.com/
President, Montreal Visual Studio User Group www.guvsm.net
INETA Regional Rep for Quebec www.ineta.org
UniversalThread Magazine Columnist (.NET Books Review Column) www.utmag.com
Tech Chair French Track, DevTeach 2004 & 2005 www.devteach.com
Business Architect, Microsoft Team - Nurun Inc www.nurun.com
XBox Live Gamer Tag: Slomo QC CA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform