Speeding up conversions 3.94 - 4.00

Share your advanced PureBasic knowledge/code with the community.
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Speeding up conversions 3.94 - 4.00

Post 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.
@}--`--,-- A rose by any other name ..
tomijan
Enthusiast
Enthusiast
Posts: 107
Joined: Sun Dec 11, 2005 1:32 pm

Post by tomijan »

Hi,
on german forum I found this similary thread:
http://www.purebasic.fr/german/viewtopi ... hlight=pbi
tom
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post 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?
@}--`--,-- A rose by any other name ..
Post Reply