Search results

  1. D

    Enum Text Constant

    I want to get the text constant from a Enum. Public Enum DayOfWeek Monday=1 Tuesday =2 <etc> End Enum If I have the number, how do I get the text constant on the enum. example: msgbox(1) How would this function return "Monday", not "1"?
  2. D

    Array bounds

    I created an property which accepts arrays in a custom class I wrote. When the property is set by the calling procedure, how can I get the total elements that are in the array at the class level? Ex: Public Sub Test() Dim myarr(0) myarr(0) = "..." myarr(1) = "..." Dim c as...
  3. D

    Create Custom Collection Class

    Chergh, yes, I know how to set a collection object, with the statements you wrote, but that is not what I am asking. Let me explain a bit better. When you use a collection object, any object for this matter, there are methods available such as Add(), Remove(), Item(). I guess my question is...
  4. D

    Create Custom Collection Class

    How do I create a class that takes on the traits of a collection. For example, I have custom clsCreditCardTransaction class, which is a individual transaction. However, I want to create a clsCreditCardTransactions class which will be a collection of all the clcCreditCardTransaction objects...
  5. D

    Setting default property values

    I am wondering if there is a way to set default values for specific properties upon instantiating a class. For example: Suppose I develop a Person class, which has name, address, city, state and zip as properties. Now when I use the New keyword in my code to instantiate this class, at that...
  6. D

    Object doesnt support this property or method

    I am having a problem passing a object as a parameter to my AddCreditCardTransaction Sub within my CreditCardBatch class. In my CreditCardBatch class, I have this sub procedure Public Sub AddCreditCardTransaction(CreditCardTransaction As clsCreditCardTransaction) MsgBox...
Back
Top Bottom