Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: \f in string

  1. #1
    Regular Coder
    Join Date
    Jan 2004
    Location
    Port Huron, MI, U.S.A.
    Posts
    280
    Thanks
    0
    Thanked 0 Times in 0 Posts

    \f in string

    How do use escape f ( the "\f"--the form feed thing)?
    Oh, was I supposed to put something here? ........

  • #2
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Bobo
    How do use escape f ( the "\f"--the form feed thing)?

    ... "\\f"
    *keep it simple (TM)

  • #3
    Regular Coder
    Join Date
    Jan 2004
    Location
    Port Huron, MI, U.S.A.
    Posts
    280
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ??????

    Yeah... but how in the diddlly do you tell the computer what the \f or \\f is supposed to mean? All I know is that it is for a form feed... but how do you tell it which?
    Oh, was I supposed to put something here? ........

  • #4
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Bobo
    how do you tell it which?
    it should know from the context. if you set the value of a textarea to "something happened on the way to \fwork today", it would put a formfeed char in at the "\f". if, however, you escaped that, it would ignore it, seeing it as plain text and would literally include the string "\f".

    that's the theory anyway ... give it a go!
    *keep it simple (TM)

  • #5
    Regular Coder
    Join Date
    Jan 2004
    Location
    Port Huron, MI, U.S.A.
    Posts
    280
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Got it! Thanks!!
    Oh, was I supposed to put something here? ........


  •  

    Posting Permissions

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