User Profile

Collapse

Profile Sidebar

Collapse
Cathode Follower
Cathode Follower
Last Activity: Sep 2 '09, 12:13 PM
Joined: Feb 14 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Use inheritance to produce a really useful combo object

    When you populate a combo you load it with data that normally comes in the form of a code and a description - but the combo is only interested in the description. By creating a class derived from a combo, with additional properties, you can use it to keep the codes as well. When the user selects a description, you can get the code from the control. Here's how I do it:
    [code=vbnet]
    Public Class ComboControl : Inherits System.Windows. Forms.ComboBox...
    See more | Go to post

  • Cathode Follower
    replied to Clone any object in vb 6.0
    Sorry I got the title wrong. The example and description refers to .NET ! Woops.
    See more | Go to post

    Leave a comment:


  • Cathode Follower
    started a topic Clone any object in vb 6.0

    Clone any object in vb 6.0

    Cloning in vb6 was always a pain. It was so easy to get the code wrong, and the problems it caused were endless - normally stack overflow.
    In .Net you do not have to do any cloning any more - you can simply serialise the object and then copy it into the target object. The technique is quite widely used and described - but it is interesting to use it with generics, as it means that you can use it anywhere in your application. Here is a code...
    See more | Go to post
    Last edited by debasisdas; Mar 7 '08, 06:54 AM. Reason: added code=vb tags

  • Converting nullable dates from vb6 to vb.net

    In VB6 we put date values obtained from databases into variants. We can then use statements like IsNull(.EndDate ) to check whether a date is set or not. When you put code like this through the vb.net conversion wizard it turns out very messy and you have to make lots of changes by hand. The basic principle is that dates like this have to be represented as Nullable(Of Date) in vb.net.
    In order to make life simpler, I have introduced two simple...
    See more | Go to post
    Last edited by Killer42; Feb 21 '08, 02:04 AM. Reason: Added CODE tags as appropriate

  • Cathode Follower
    started a topic ASP 1.1 ORA-00911: invalid character

    ASP 1.1 ORA-00911: invalid character

    This may seem obvious, but I spent a while before I spotted it, so it might help others.
    If you use a select statement with a semicolon at the end of the string e.g.
    SELECT * FROM PEOPLE;
    with Oracle then it will give the above error. Exactly the same statement works correctly with SQL Server.
    See more | Go to post
No activity results to display
Show More
Working...