jonathan wrote: > > le 2001/11/12 22:21, Alain Pastor à apastor@... a écrit : > > > local mode > > local fn changeSuffix$( theFileName as str255, theSuffix as str255 ) > > dim i as long > > ' > > long if theFileName[0] > > for i = theFileName[0] to 1 step -1 > > if theFileName[i] = _"." then exit for > > next > > if i then theFileName[0] = i - 1 > > theFileName += "." + theSuffix > > end if > > end fn = theFileName > > alain > just a question... why use a long for i? > With the PPC, I believe that long integers are handled more efficiently by the CPU, from what I have understood a short int is converted to a long when the value is stored in a register, but frankly here I don't think it matters since the conversion must occur anyway. In some instances there may be a tiny difference in speed I think. Again, in the above code, I doubt it is useful. -- Cheers Alain ----------------------------------------------------- FB^3 in Europe: http://euro.futurebasic.com/ FB II Pouch: http://www.pixmix.com/FB/outils.html -----------------------------------------------------