Page 1 of 1

Speeding up conversions 3.94 - 4.00

Posted: Fri Mar 10, 2006 5:33 am
by Dare2
Haven't seen this posted else, if this is a duplicate, my apololgies.

Macro makes it easier to convert 3.94 to 4.00 - not in every instance, but in many.

Search/Replace/Rename an old command and set up a macro for the new name - For example, replace ClearScreen with oldClearScreen and then create a macro:

Code: Select all

Macro oldClearScreen(r,g,b)
  ClearScreen(RGB(r,g,b))
EndMacro
Sometimes, no need to search/rename:

Code: Select all

Macro eventGadgetID
  EventGadget
EndMacro
This is proving pretty useful on a biggish old project right now.

Posted: Fri Mar 10, 2006 9:38 am
by tomijan
Hi,
on german forum I found this similary thread:
http://www.purebasic.fr/german/viewtopi ... hlight=pbi
tom

Posted: Fri Mar 10, 2006 10:55 am
by Dare2
Neat.

Great minds think alike! - we'll ignore the other part of that quote. :)

Anyone got any other suggestions for easing the transition?