Results 1 to 3 of 3

Thread: Naming convention for the sstab and a misc. question

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    74

    Talking

    I tried to look for this on my own instead of posting a simple question like this on the forum. I must be blind as a bat but I couldn't find it in the help or at any sites with hungarian notations.

    Unless you haven't noticed the subject heading ,
    What's the correct naming convention for the sstab control?

    I might as well ask another quesiton to make this post worthwhile...

    Is VB capable of supporting method overloading, similar to java?

    I'm not so sure if I got the term right so I better describe it . This is where you create multiple methods with the same names but accepts different parameters. So when you call the method it will check which paramters you're passing and run the corresponding method. Does anyone know this? Or am I just confusing this with another language or concept? Does VB support this?

  2. #2
    Guest
    There is no "correct" naming fro an sstab control. Personally I use either tabSomething or stabSomething, depending on is I'm using multiple tab types.

    As to overloading, no it can't be done in VB in the proper sense (ie how Java does it). It will apparently be supported in VB7,along with the rest of the OO concepts.

    Overloading can sort of be faked by using the variant type and checkign the contents, but it's a pain.

    - gaffa

  3. #3
    Fanatic Member ExcalibursZone's Avatar
    Join Date
    Feb 2000
    Location
    Western NY State
    Posts
    908
    Howdy,
    The answer to your first question is SST

    Secondly, I haven't found anything that allows VB to use the C++/Java capability of method overloading (if there is a way, I haven't found it yet ... I tested it, and I could be off on the way they're declared, but I do not see a way to Overload a method with VB. You can simulate this with a few options ...

    Code:
    Public Sub Test(Var1 As Integer, Optional Var2 As Integer, ... Optional VarN As Integer)
    This comes *close* but it doesn't seem to have true overloading ... I would like to be able to mess with operators and such as well But alas, VB cannot do it *yet* ... (Don't know if it ever will either *sigh*)
    -Excalibur

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width