Results 1 to 8 of 8

Thread: Return types

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2008
    Posts
    6

    Return types

    Can any one tell me return type of
    Code:
    form.gInc
    Thanx in advance

    Last edited by jdev.techno; Apr 18th, 2008 at 02:24 AM.

  2. #2
    Hyperactive Member mrmojorisin's Avatar
    Join Date
    Oct 2007
    Location
    London Town Vocation: Garden Cricket Genuis
    Posts
    439

    Re: Return types

    Sounds like a variable - where did you see 'gInc'?

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2008
    Posts
    6

    Re: Return types

    Its a property for incrementing/decrementing green colour of a form/textbox
    Last edited by jdev.techno; Apr 18th, 2008 at 03:34 AM.

  4. #4
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Return types

    You can return the data type by using MsgBox TypeName(Something)

    Are you sure this is VB6? What is form? A form? VB6 doesn't have a .gInc property for forms.

  5. #5

    Thread Starter
    New Member
    Join Date
    Apr 2008
    Posts
    6

    Re: Return types

    Hi,
    It is vb6
    Code:
    gPlaceBulbs Tenant, Tenant.gInc, tCurNumBulbs
    In the above code gPlaceBulbs is a method that takes 3 arguments form,datagrid and an integer.
    Tenant is a form and tCurNumBulbs is an integer variable.
    now when I compile I get following error ByRef argument type mismatch and it points to Tenant.gInc.That's why the question.

  6. #6
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    Re: Return types

    Quote Originally Posted by jdev.techno
    In the above code gPlaceBulbs is a method that takes 3 arguments form,datagrid and an integer.
    Tenant is a form and tCurNumBulbs is an integer variable.
    Tenant.gInc must be a DataGrid Contro then, if that's what the method expects.

  7. #7

    Thread Starter
    New Member
    Join Date
    Apr 2008
    Posts
    6

    Exclamation Re: Return types

    can picturebox act as a container for any other control

  8. #8
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    Re: Return types

    Yes - PictureBoxes and Frames can

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