Hi all, still getting started with Xojo, so not sure if this is possible: does Xojo have a way to print out an entire object and its properties as a string, without creating my own method to do it? I want to make a listbox that acts like the Xojo debugger’s variable window - showing type, value, etc - all without having to manually code in every property in the code. If not, I assume I could serialize the object to JSON and then attach the JSON string to the listbox. I found this code on the forums:
dim props() as Introspection.PropertyInfo = Introspection.GetType(val).GetProperties()
for each p as Introspection.PropertyInfo in props
// add p.Name to a listbox...
next
But obviously not all methods have a String method if I try to find out the values to the list box using str(p.Value).
Thanks!