Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2003
    Posts
    11

    Create/replace action

    Hi all,

    I have never created a text file with a create/replace action to replace HTML pages. Furthermore, I am trying to fathom the true function/purpose of this process. Are there any examples that I could look at?

    My apologies for the dumb newbie Qs!

    Thanks!

    Nick.

  2. #2
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    Re: Create/replace action

    Well let's say our HTML page looks like this:

    <HTML>
    <HEAD>
    </HEAD>
    <BODY text="#000000">
    Hello World
    <BODY>
    </HTML>

    Then you could store that in a variable, and save the contents of that variable to a file, i.e. hello.html using TEXT FILE > WRITE action. You can take it a step further by storing this in your variable:

    <HTML>
    <HEAD>
    </HEAD>
    <BODY text="#000000">
    ###MYMESSAGE###
    <BODY>
    </HTML>

    instead and then using a STRING > REPLACE action to change the value of ###MYMESSAGE### to whatever you like, i.e. "Hello World" at runtime, then the variable (with the message value now replaced) can be saved as an .html page.

    Corey Milner
    Creative Director, Indigo Rose Software

Posting Permissions

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