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 8990697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:33:25+00:00 2026-06-15T22:33:25+00:00

My understanding of using the Let property in a class module so far is

  • 0

My understanding of using the Let property in a class module so far is that you set it up in the class modules like this:

Dim pName as String
Public Property Let Name(Value As String)
    pName = Value
End Property

And then you after you’ve created an object of this class you can set this property like so:

MyObject.Name = "Larry"

Question: Is it possible to somehow enter multiple arguments into a class property? For instance:

Dim pFirstName as String, pLastName as String
Public Property Let Name(FirstName As String, LastName As String)
    pFirstName = FirstName
    pLastName = LastName
End Property

How would you then go about setting this property outside the class?

MyObject.Name = ??

Or is this just plain not possible to do?

  • 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-15T22:33:26+00:00Added an answer on June 15, 2026 at 10:33 pm

    As per your comment if you would prefer to encapsulate this logic then you can use something similar to the below.

    Below includes the sub and function. The function returns a Person object:

    Public Sub testing()
    
        Dim t As Person
    
        Set t = PersonData("John", "Smith")
    
    End Sub
    
    
    Public Function PersonData(firstName As String, lastName As String) As Person
    
        Dim p As New Person
    
        p.firstName = firstName
        p.lastName = lastName
    
        Set PersonData = p
    
    End Function
    

    Person Class:

    Dim pFirstName As String, pLastName As String
    
    Public Property Let FirstName(FirstName As String)
        pFirstName = FirstName
    End Property
    
    Public Property Get FirstName() As String
        FirstName = pFirstName
    End Property
    
    Public Property Let LastName(LastName As String)
        pLastName = LastName
    End Property
    
    Public Property Get LastName() As String
        LastName = pLastName
    End Property
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It is my understanding that anything running using .NETs threadpool like this: ThreadPool.QueueUserWorkItem(myproc); will
My understanding is that the LinqToSql pseudolanguage describes a set using a syntax very
My understanding is that when using && as an mathematical operation in Java, if
We're using ReportBuilder 1.0 (2005) for now. I'm not understanding the way that the
As far as my understanding after reading and researching, the purpose of using salt
This is a basic understanding concepts related question. Working using: Embarcadero C++ Builder What
Am using pages in my application and let me explain simply for your understanding.
Let me start by saying that my understanding of how JNA and Java direct
I am having some trouble understanding this brute force approach. I am using Perl
Using Mongoid, let's say I have the following classes: class Map include Mongoid::Document embeds_many

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.