Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wierd FIND problem in VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP3
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01580417
Message ID:
01580424
Vues:
47
>>>Hi Gang...
>>>When I do a FoxPro FIND, searching for \temp
>>>it won't find it !! Yet it will find \ or it will find temp.
>>>Why not \temp ??
>>>Thanks!
>>Interesting. \t is a code for "tab" in certain nomenclatures. Try searching for "\\temp" and see if it finds "\temp".
>It found \\temp..... so you must be correct !!!
>Thanks!


No problem. It's interesting that VFP is doing some (what's called) "escape code" parsing there. I don't think I knew it did that.

Here's a list of common escape codes: http://en.wikipedia.org/wiki/Escape_sequences_in_C
    \a – Bell (beep)
    \b – Backspace
    \f – Formfeed
    \n – New line
    \r – Carriage return
    \t – Horizontal tab
    \\ – Backslash
    \' – Single quotation mark
    \" – Double quotation mark
    \0CHR(0)
    \ooo – Octal representation
    \xdd – Hexadecimal representation
The \\ is converted to a single \ via the escape code.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform