Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8579157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:33:09+00:00 2026-06-11T20:33:09+00:00

Hello im trying to create a class in vb and when and try to

  • 0

Hello im trying to create a class in vb and when and try to instance the class the class is without any value

Private lat As Double
Private lon As Double

Public Property Get Longitud() As Double

Longitud = lon

End Property
Public Property Get Latitud() As Double
Latitud = lat

End Property
Public Property Let Longitud(ByVal longi As Double)

Longitud = lon

End Property

Public Property Let Latitud(ByVal lati As Double)

Latitud = lat
End Property

And when im trying to instance

Dim cord As Coordenadas
Set cord = New Coordenadas
cord.Latitud = 40.30416667
cord.Longitud = 0.22583333

I cant see any change in the cord

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T20:33:10+00:00Added an answer on June 11, 2026 at 8:33 pm

    Your Let property is not allocating correctly the value you passed as argument.
    It should be as follows:

    Private lon As Double
    '
    
    Public Property Let Longitud(ByVal longi As Double)
    
        lon = longi
    
    End Property
    

    Let should assign the value to your private variable (Lon) and Get should retrieve the value stored inside that variable.

    Just as an addition, it will help you a lot if you give your private properties a special suffix. For example pLon and pLat. This way is easier for you to identify the variables from the arguments and properties.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What I try to do Hello Guys, I'm trying to create a Login-Screen which
Hello I am trying to create a custom expandable listview, but the documentation on
I'm trying to create an Hello World JSF application. I have a bean with
I'm trying to follow the instructions located at How-To Create a Hello World Snap-in
Hello, i'm trying to take detailed information from the database, i create a simple
Hello I´m trying to automate AZURE VM management like Amazon EC2. Is there any
Hello i am trying to create SMS aplication witch shows me SMS Inbox in
Hello I am trying to create an ASyncTask that will parse data from an
Hello i am trying to Create the beginning of a full screen game and
Hello I want to create a dll with some functions. For starters I'm trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.