Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by ispeaker

  1. ispeaker

    Print debug content to text file?

    How does one print the contents of the debug window to a text file?
  2. ispeaker

    How to test for system data types

    Yes, I got it to work using prop.PropertyType.ToString. To make sure I read only properties with printable values, I used, If NOT prop.PropertyType.isClass then . . .
  3. ispeaker

    Get all property values from object / class

    To prevent the script from generating an error when a property of one class is another class, use this: If Not prop.PropertyType.IsClass Then . . .
  4. ispeaker

    How to test for system data types

    That got me one step close. Debug.WriteLine(prop.MemberType.ToString()) always returns "Property." What I need to know is if the data type of the property is a system type (system.integer, system.double, etc.) or is it a class or collection.
  5. ispeaker

    How to test for system data types

    I am looping through all the properties of a class. Most are of a system data type (i.e. system.double, system.integer, etc.). Some are actually other classes. How can I tell at run time if the current property is a system data type or class or a collection?
  6. ispeaker

    Get all property values from object / class

    Your welcome, Chrissie1. Watch out for one thing: if one of the properties is another object or collection, it won't be able to handle it. I'm working on it. Will post solution.
  7. ispeaker

    Get all property values from object / class

    ANSWER: Put this into any collection class, and it will loop through every object in the collection and print the value of each object. The code between the ==== lines is the code that gets the value of the property. Public Shared Sub PrintValues(ByVal ItemList As IEnumerable) Dim...
  8. ispeaker

    Get all property values from object / class

    I have a collection of objects. I can successfully loop through the collection, and print the value of any property by explicitly stating the property such as obj.ProductGID will print out the value of the current object's ProductGID property. Looking for a way to print out the values without...
  9. ispeaker

    DataView: loop through columns

    ca8msm, No matter what I tried, I could not get anything but "GetType" to show in intellisense. BUT, this morning, after re-boot the computer, I get the full list of intellisense properties and methods. Mmmmm....... Maybe a problem with my Visual Studio 2003. Anyways, thanks again for the...
  10. ispeaker

    DataView: loop through columns

    SqueakinSweep, what makes this the "correct" way?
  11. ispeaker

    DataView: loop through columns

    Here is the exact code: Dim dvPartsPricing As DataView dvPartsPricing = dsPartsPricing.Tables(0).DefaultView dvPartsPricing.Sort = "CatMainSubGID, Length"
  12. ispeaker

    DataView: loop through columns

    Thank you, but I must ask this question: Why is it that when i type "dv." the only option intellisense gives me is "GetType"? Why don't I see "Table"?
  13. ispeaker

    DataView: loop through columns

    OK. After two hours on Google I can not find an example to loop through a DataView the way I want to. Maybe its got something to do with Monday morning. Well, here is what I what to do: For each row in dataview For each col in dataview debug.writeline(the current column) Next Next Any...
  14. ispeaker

    Join two tables on multiple columns?

    Don't worry, SQLDenis. I, ispeaker, am really rrhandle who for some unknown reason have been unable to login for weeks, and no one will answer my e-mails, so I created a new account, and replied to this post to see what would happen.

Part and Inventory Search

Back
Top