Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: tushar Kanvinde
  Where is tushar Kanvinde?
 Kolhapur, Maharastra
 India
 tushar Kanvinde
 To: rose cruz
  Where is rose cruz?
 navotas
 Philippines
 rose cruz
 Tags
Subject: RE: Scan and Replace Script/Produre
Thread ID: 228723 Message ID: 228743 # Views: 1 # Ratings: 0
Version: Visual FoxPro 8 Category: General VFP Topics
Date: Thursday, May 21, 2009 8:42:36 AM         
   


> > hi,
> >
> > how about
Strtran()

> >
> > hth,
> > Erik Gomez
> > www.foxite.com - The Home of The Visual FoxPro Experts
> > Personal Weblog
> > My Other Blog
>
>
> Yes, it can help but I need to scan the whole Form or PRG to search one word and replace it.
>
> Thanks...

In addition to what Eric said, COMPILE FORM FormName will create the objcode from the methods code. You will need to use nFlags parameter of STRTRAN if you want case insensitive replacement. Be aware that STRTRAN will replace the string even if it is part of a word.

Regards
Tushar

ENTIRE THREAD

Scan and Replace Script/Produre Posted by rose cruz @ 5/21/2009 5:58:11 AM
RE: Scan and Replace Script/Produre Posted by kulwant singh @ 5/21/2009 7:28:00 AM
RE: Scan and Replace Script/Produre Posted by rose cruz @ 5/21/2009 7:58:58 AM
RE: Scan and Replace Script/Produre Posted by Erik Gomez @ 5/21/2009 7:59:47 AM
RE: Scan and Replace Script/Produre Posted by rose cruz @ 5/21/2009 8:03:19 AM
RE: Scan and Replace Script/Produre Posted by Erik Gomez @ 5/21/2009 8:39:21 AM
RE: Scan and Replace Script/Produre Posted by tushar @ 5/21/2009 8:42:36 AM