Results 1 to 3 of 3

Thread: Victim of my own laziness

  1. #1
    IRN-BRU(tm)
    Join Date
    Aug 2004
    Location
    Milton Keynes
    Posts
    484
    Thanks
    8
    Thanked
    9 times in 7 posts

    Victim of my own laziness

    Hi,
    I am writing a game for the mobile phone which is coming to its later stages. I am currently trying to replace all of my constant expressions with their values throughout the program.

    I have a list of 481 constants defined like this
    Code:
    public static final int STR_TITLE_FORUM = 62;
    public static final int STR_TITLE_SQUAD = 63;
    public static final int STR_TITLE_LEAGUE = 64;
    public static final int STR_TITLE_FRIENDLIES = 65;
    public static final int STR_TITLE_SETTINGS = 66;
    Does anyone know of a program that will preferably go through all of my source files and replace any constant names with their corresponding values, failing that a program that will take a list of search fields and a list of replace fields in the automatic stylee of a manual search and replace.

    chars,
    Purp

  2. #2
    listen to escape fails :) luap.h's Avatar
    Join Date
    Jan 2004
    Posts
    569
    Thanks
    4
    Thanked
    2 times in 2 posts
    not exactly sure what you mean - but UltraEdit is good for searching/replacing in multiple files

  3. #3
    IRN-BRU(tm)
    Join Date
    Aug 2004
    Location
    Milton Keynes
    Posts
    484
    Thanks
    8
    Thanked
    9 times in 7 posts
    yeah sorry it wasnt very clear - im tired. I wanna replace a list of variables who have a static value with that static vlaue in all the source files, preferably with a dedicated tool so i do not have to mess about very much, but i will suffice with a program that does it in a round about way.

    ta for the reply i will give UltraEdit a bash.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 29-04-2004, 12:57 AM
  2. [News] Cold Claims First Victim
    By sputnik found in forum General Discussion
    Replies: 0
    Last Post: 27-01-2004, 11:43 PM
  3. Almost a victim of Fraud
    By evildoc614 in forum General Discussion
    Replies: 5
    Last Post: 02-10-2003, 05:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •