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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:22:16+00:00 2026-06-04T09:22:16+00:00

I have a collection as follows: Set NodeColl = New Collection NodeColl.Add Node 1,

  • 0

I have a collection as follows:

Set NodeColl = New Collection
NodeColl.Add "Node 1", "Node 1"
NodeColl.Add "Node 2", "Node 2"
NodeColl.Add "Node 3", "Node 3"

I am wondering if there is an easy way to rename the keys of selective items without affecting other items or the collection itself. For example, something like NodeColl.Items(“Node 1”).Key = “Some string”

  • 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-04T09:22:17+00:00Added an answer on June 4, 2026 at 9:22 am

    Nope, you will need to add & remove manually;

    with NodeColl
        .add .Item("Node 2"), "New Key", , "Node 2"
        .remove "Node 2"
    end with
    

    Or use a Dictionary which allows this, either by adding a reference to Microsoft Scripting Runtime or;

    dim NodeColl as object: Set NodeColl = createobject("Scripting.dictionary")
    NodeColl.add "key for Node 1", "Node 1"
    NodeColl.add "key for Node 2", "Node 2"
    NodeColl.add "key for Node 3", "Node 3"
    
    '//direct rename allowed;
    NodeColl.Key("key for Node 2") = "New Key here"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Array Collection as follows var myArr:ArrayCollection = new ArrayCollection([ {label: label1,
Lets say I have some view models set up as follows: public class User
I have a collection of six seat objects (UIViews with the alpha property set
I have a set of structs, defined as follows: typedef struct { int index;
I have set of properties as follows: public string Foo1 {set;get;} public string Foo2
I have 2 objects as follows class A{ Set<B> bs ; } class B{
I have a collection of std::set . I want to find the intersection of
Basically each entity would have a collection of feeding behaviors that it would follow.
I have code to run sql query in ruby as follows sql = ActiveRecord::Base.connection()
I have Collection List<Car> . How to compare each item from this collection with

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.