Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    Nov 2001
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Formating text (97)

    Is it possible to apply a format like bold or italics to some part of text in a text field in a form, while entering data into the field.
    The field has a font and formatting already defined in the properties dialog box of the field.

    Avi

  2. #2
    4 Star Lounger
    Join Date
    May 2003
    Location
    Austin
    Posts
    401
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Formating text (97)

    Long story short...to the best of my knowledge you can only apply formatting to the contents of a field in a form, not select pieces of it.
    I imagine that you could determine the length of the string, take the first or last or both character(s) in the string,
    and apply some custom format for that...or find a substring in a string that matches a value...
    but why on earth would you want to?

  3. #3
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Formating text (97)

    No, sorry, but you cannot format a portion of the contents of a field. Formatting is a display issue and applies to the entire field. The only exception to this would be through use of an ActiveX control like the MS RichTextbox control.
    Charlotte

  4. #4
    4 Star Lounger
    Join Date
    May 2003
    Location
    Austin
    Posts
    401
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Formating text (97)

    I knew that format was a display-only kind of thing.
    Initially, I wrote this response about datatypes and such...but it seemed so long-winded.

    AVI-
    It all breaks down to datatypes and numbers...further down to 1s and 0s.
    While an uppercase 'A' has a numeric value and a lower case 'a' has a different value...
    this is not the same as a font selection. There are no numeric values for italics, bolds etal outside of the font shell.
    You can only apply 'formatting' to an datatype or change the contents of the field with a function.
    I hope I didn't throw you off.

    I guess I didn't really read or retain his question very well.

Posting Permissions

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