Results 1 to 2 of 2

Thread: HOW CAN I KNOW THE VB VERSION

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    spain
    Posts
    1

    Question

    Hello kids:
    I would know the way for know the VB version. For example, if I want use a run time control creation, in VB6 i can do it with the Add method, and in VB5 using and arry.
    What is the sentence for, in a conditional porpouse, know the version?
    Thanks.
    [email protected]

  2. #2
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386
    Not, but you can use conditional compiler constants.
    In the project properties, set VB6=1
    and in code
    #If VB6 Then
    ' do something
    #End If
    do something will only be executed if the VB6 flag is 1 (so don't forget to set it to 0 when you use VB5...)
    Hope this helps

    Crazy D

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