Results 1 to 3 of 3

Thread: Return more than one value with an 'Get' [RESOLVED]

  1. #1

    Thread Starter
    Hyperactive Member Bloged's Avatar
    Join Date
    May 2001
    Location
    Rotterdam, The Netherlands
    Posts
    330

    Question Return more than one value with an 'Get' [RESOLVED]

    He everyone,

    Another question by me!

    I've got this structure:
    VB Code:
    1. Structure Coordinates
    2.         Private intX As Integer
    3.         Private intY As Integer
    4.  
    5.         'Set the X & Y of the Coordinate
    6.         Public Function SetXY(ByVal iX As Integer, ByVal iY As Integer)
    7.             intX = iX
    8.             intY = iY
    9.         End Sub
    10.     End Structure

    But now I want to make the get function of this one wich returns both X and Y value how to do this... And how to call this function?! Or isn't this possible!

    Thnx in advance,

    Bloged
    Last edited by Bloged; Mar 15th, 2004 at 12:16 PM.

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Look into the point structure:
    System.Drawing.Point

    Seems to be what you are doing anyway, maybe there is something there for you to use.

  3. #3

    Thread Starter
    Hyperactive Member Bloged's Avatar
    Join Date
    May 2001
    Location
    Rotterdam, The Netherlands
    Posts
    330
    Thnx hellswraith,

    That was the solution!

    Grtz,

    Bloged

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