Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot write to the physical database
Message
From
26/03/2008 13:07:30
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
26/03/2008 12:45:35
General information
Forum:
ASP.NET
Category:
Databases
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01305661
Message ID:
01305793
Views:
6
>>Let me think about it for a while. BTW, you should consider creating a property on your form to handle passing in parameters instead of using the Tag property. I used the Tag property for a long time before I actually grasped forms were Object Oriented. It gives you a lot more flexibility.
>
>I'm plenty aware that forms are Objects, and in VFP, I've created custom properties and methods all the time. At the risk of asking a silly question, where would one do so in the VB IDE? Believe me, I just searched - or is that something missing in the Express Edition?
>
>David

Code to add to your form:
'Create the member to hold the object.  Type this to match the type you are passing in.
Private _Object As Object

'Create the property for the plumbing
Public Property MyObject AS Object
  Get
    Return _Object
  EndGet
  Set(ByVal value AS Object)
    _Object = value
  EndSet
End Property
Now when you instantiate your form class, it will have a property called MyObject. A cool trick, but it doesn't seem to be documented that well.
Very fitting: http://xkcd.com/386/
Previous
Reply
Map
View

Click here to load this message in the networking platform