> Just in case: > > REPEAT > b = TabStrip3.Count ' In fact, this does nothing usefull > INC a > UNTIL a < TabStrip3.Count OR TabStrip3[a].Caption = IdCaption
This doesn't make same functionality. Because if ldCaption doesn't match to any of tabstrip captions, function will still answer TabStrip3.Count instead of zero. In short, you cannot remove IF THEN construct. I think I have done enough errors for this day (I'm going to sleep). Jussi ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user