I'd like to see a function that provides default data for any given data type. I think there could be multiple uses for this; I've detailed mine below.
In this example, I have a test results array that is indexed by test number. If I run tests out of order, I want be able to fill in the results of the array at the desired index. To do this, I have to add empty rows to the results array up to the current test's index. To do get the default data I used a diagram disable structrue with an empty "Enabled" case, with the output set to "Use Default if unwired. This is obviously a kludge.
I'd like to see a function that takes in any data type and returns the default data for that type:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.