New answers tagged

1

I have analyzed your code and suggest the following changes: the second loop over j to find the startdate is superfluous and can be included in the search loop by using a simple if. avoid using Redim Preserve in a loop, it's time consuming as each time the array has to be copied completely; Dim the array once to a set maximum and shorten it once after ...


3

I’m really not a fan of this idea, on a lot of levels. First of all, it’s extremely limited; it only works for the most basic enum definitions. As soon as you add initializers or attributes, chaos ensues. Second, it’s just absurdly overcomplicated for what should be trivial code. The fact that you’re having problems with code gen should be a warning sign. ...


Top 50 recent answers are included