Home » Developer & Programmer » Forms » how to read an html file and replace a text using text_io (oracle forms 10g)
how to read an html file and replace a text using text_io [message #316368] Thu, 24 April 2008 16:35 Go to next message
vinodkumarn
Messages: 54
Registered: March 2005
Member
hi,

i want ro read an html file using text_io and replace a particular text with a new text
eg: i want to replace a text called "data.js" and with "maps.js"

how do i do this?
Re: how to read an html file and replace a text using text_io [message #316931 is a reply to message #316368] Mon, 28 April 2008 21:02 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
You read the old file, do an 'instr' to find the text, use 'substr' to build the new line, then write it to a new file.

When you are finished you delete the old file and rename the new file to old.

David
Previous Topic: same toolbar in multiple form or module
Next Topic: disable print option from default&smartbar
Goto Forum:
  


Current Time: Tue Mar 28 14:31:19 CDT 2017

Total time taken to generate the page: 0.08807 seconds