Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    Nov 2001
    Location
    Exeter, New Hampshire, USA
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Foxpro syntax (Foxpro 6.0)

    Does anyone know the syntax for a Foxpro command that will fill in a field if another field contains some specific text? Basically, the script would look something like "replace all company with "XX" for summary contains "XX"". The "contains" part is what we're struggling with. The "XX" at the end can be anywhere in the field at all.

    Thanks

  2. #2
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: Foxpro syntax (Foxpro 6.0)

    Hi,
    I'm not big on FoxPro but does
    replace all company with "xx" FOR LIKE('*xx*', summary)
    work?
    Regards,
    Rory

    Microsoft MVP - Excel

  3. #3
    Star Lounger
    Join Date
    Nov 2001
    Location
    Exeter, New Hampshire, USA
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Foxpro syntax (Foxpro 6.0)

    Thanks Rory!! Worked great!!

Posting Permissions

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