Forcing text into UPPER CASE???

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default Forcing text into UPPER CASE???

    Is it possible to force a text members contents into upper case.

    E.g. 'nik' would be typed into a editable text box, it would then be turned into 'NIK' when submitted.

    Can this be done and if so how?

    Thanks.

    Nick


    Nicollini webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. All text appear in upper case HELP!
      I don't know why but everything I enter appears in upper case. My caps are off and I checked everywhere I could think off to find how to turn off...
    2. forcing upper case on insert of record
      I'm having trouble figuring out the code to force a form field to upper case when it is inserted into the database. This is what I have. What am I...
    3. Upper Case HTML Text on UNIX Server
      Please can someone give me some advice: My HTML contains Upper Case text, which is not supported on the UNIX server where I have tried to publish...
    4. automatically change to Upper Case
      Hi All, need a little help from all of u guys. I want to change input to uppercase while user key in. SO how can I make i in the input text...
    5. help! forcing form variable to upper case (ASP VB)
      I got the following code help to force a form input to uppercase, but don't know where in the code it belongs. Can someone elaborate? strTemp =...
  3. #2

    Default Re: Forcing text into UPPER CASE???

    a little approach, that can be improved :

    -----------------------------------
    on toUpperChar pChar
    set myChar = pChar
    set myNum = CharToNum (myChar )
    if ( myNum >= CharToNum ("a")) and (myNum <= CharToNum ("z")) then
    myChar = NumToChar (myNum + CharToNum("A") - CharToNum("a"))
    end if
    return (myChar)
    end
    -----------------------------------
    on toUpperString pString
    nbChar = pString.char.count
    set myString= ""
    repeat with i = 1 to nbChar
    put toUpperChar (pString.char[i]) after myString
    end repeat
    return (myString)
    end
    -----------------------------

    put toUpperString ("a.b,c1d*e-f")
    --A.B,C1D*E-F

    --
    ----------------
    -- Ned
    ----------------------------------------
    Bien faire et laisser braire
    ----------------------------------------
    "Nicollini" <webforumsuser@macromedia.com> a écrit dans le message de
    news:bjn9jm$k2g$1@forums.macromedia.com...
    | Is it possible to force a text members contents into upper case.
    |
    | E.g. 'nik' would be typed into a editable text box, it would then be
    turned into 'NIK' when submitted.
    |
    | Can this be done and if so how?
    |
    | Thanks.
    |
    | Nick
    |
    |


    Ned Guest

  4. #3

    Default Re: Forcing text into UPPER CASE???

    forget my answer : Luke's solutions are much smarter !

    --
    ----------------
    -- Ned
    ----------------------------------------
    Bien faire et laisser braire
    ----------------------------------------


    Ned Guest

  5. #4

    Default Re: Forcing text into UPPER CASE???

    member("text_member").fontstyle = [#AllCaps]

    --
    Alex.
    ----------------------------------------------------------
    Meliora Software, "Ameliorated Development!"
    [url]http://www.meliorasoft.com[/url]
    > Is it possible to force a text members contents into upper case.
    >
    > E.g. 'nik' would be typed into a editable text box, it would then be
    turned into 'NIK' when submitted.
    >
    > Can this be done and if so how?
    >
    > Thanks.
    >
    > Nick

    Alex Meliora Guest

  6. #5

    Default Re: Forcing text into UPPER CASE???

    Where did you find this feature. Can´t find it in the manual.

    I did manage to find fontStyle = [#AllLower] (not in the manual)


    Is this the new undoced Lingo of DMX?


    Mango


    mango Guest

  7. #6

    Default Re: Forcing text into UPPER CASE???

    hey, that's great ! Where did you get these ? thank's a lot anyway :o)

    --
    ----------------
    -- Ned
    ----------------------------------------
    Bien faire et laisser braire
    ----------------------------------------
    "Alex Meliora" <nospam@meliorasoft.com> a écrit dans le message de
    news:bjpra5$2k3$1@forums.macromedia.com...
    | Here's the list of all undocumented font styles for text members:...


    Ned Guest

  8. #7

    Default Re: Forcing text into UPPER CASE???

    Here's the list of all undocumented font styles for text members:

    #Boxed
    #DoubleUnderline
    #WordUnderline
    #DottedUnderline
    #HiddenText
    #StrikeOut
    #SuperScript
    #SubScript
    #AllCaps
    #AllLower
    #SmallCaps
    #Overline

    they are not new and available in Director 8 +.

    --
    Alex.
    ----------------------------------------------------------
    Meliora Software, "Ameliorated Development!"
    [url]http://www.meliorasoft.com[/url]

    "mango" <mango.nospam.justincase@swipnet.se> wrote in message
    news:bjofjv$s5j$1@forums.macromedia.com...
    > Where did you find this feature. Can?t find it in the manual.
    >
    > I did manage to find fontStyle = [#AllLower] (not in the manual)
    >
    >
    > Is this the new undoced Lingo of DMX?
    >
    >
    > Mango

    Alex Meliora Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139