[futurebasic] Re: [FB] Text Formatting question

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 2005 : Group Archive : Group : All Groups

From: "Steven J. Stratford" <sstrat@...>
Date: Wed, 16 Nov 2005 20:33:35 -0600
Try looking back at what "someone" actually sent you. You'll need Stu's
solution anyway because those constants aren't all powers of 2.

--Steve

On 11/16/05 7:01 PM, "Brian Heibert" <bheibert@...> wrote:

> I am running into these errors with that code
> that someone sent me on how to have multiple font styles
> CASE "BOLD": Bit% = (Bit%) + _boldBit%:TEXT ,,Bit%
> CASE "ITALIC": Bit% = (Bit%+_italicBit%):TEXT ,,Bit%
> CASE "UNDERLINE" : Bit% = (Bit% + _ulineBit%):TEXT ,,Bit%
> CASE "EXTEND" : Bit% = (Bit% + _extendBit%):TEXT ,,Bit%
> CASE "OUTLINE" : Bit% = (Bit% + _outlineBit%):TEXT ,,Bit%
> CASE "SHADOW" : Bit% = (Bit% + _shadowBit%):TEXT ,,Bit%
> CASE "CONDENSE" : Bit% = (Bit% + _condenseBit%):TEXT ,,Bit%
> 
> 
> Warning: Variable address rounded up to even address
> in file HBasic.proj:HBASIC.MAIN at line 14 in aboutbox
> €€Dim Bit% as integer
> 
> Error: Missing a begin Œ(Œ Fix it...
> in file HBasic.proj:HBASIC.MAIN at line 966 in DoRunCommand
> CASE "BOLD": €Bit% = (Bit€%) + _boldBit%:TEXT ,,Bit%
> 
> Error: A Numeric or String value expected here...
> in file HBasic.proj:HBASIC.MAIN at line 966 in DoRunCommand
> CASE "BOLD": €Bit% = (Bit€%) + _boldBit%:TEXT ,,Bit%
> 
> Error: An Expression Expected here???
> in file HBasic.proj:HBASIC.MAIN at line 966 in DoRunCommand
> CASE "BOLD": €Bit% = (Bit€%) + _boldBit%:TEXT ,,Bit%
> Error: Expected an end Œ)¹ here...
> Example: Too many parameters, or mismatched ().
> in file HBasic.proj:HBASIC.MAIN at line 966 in DoRunCommand
> CASE "BOLD": €Bit% = (Bit%) + _boldBit%€:TEXT ,,Bit%
> Error: Missing a begin Œ(Œ Fix it...
> in file HBasic.proj:HBASIC.MAIN at line 966 in DoRunCommand
> CASE "BOLD": Bit% = (Bit%) + _boldBit%:€TEXT ,,Bit€%
> Error: A Numeric or String value expected here...
> in file HBasic.proj:HBASIC.MAIN at line 966 in DoRunCommand
> CASE "BOLD": Bit% = (Bit%) + _boldBit%:€TEXT ,,Bit€%
> Error: An Expression Expected here???
> in file HBasic.proj:HBASIC.MAIN at line 966 in DoRunCommand
> CASE "BOLD": Bit% = (Bit%) + _boldBit%:€TEXT ,,Bit€%
> Error: Expected an end Œ)¹ here...
> Example: Too many parameters, or mismatched ().
> in file HBasic.proj:HBASIC.MAIN at line 966 in DoRunCommand
> CASE "BOLD": Bit% = (Bit%) + _boldBit%:€TEXT ,,Bit%€
> Error: Missing a begin Œ(Œ Fix it...
> in file HBasic.proj:HBASIC.MAIN at line 967 in DoRunCommand
> CASE "ITALIC": €Bit% = (Bit€%+_italicBit%):TEXT ,,Bit%
> Error: A Numeric or String value expected here...
> in file HBasic.proj:HBASIC.MAIN at line 967 in DoRunCommand
> CASE "ITALIC": €Bit% = (Bit€%+_italicBit%):TEXT ,,Bit%
> Error: An Expression Expected here???
> in file HBasic.proj:HBASIC.MAIN at line 967 in DoRunCommand
> CASE "ITALIC": €Bit% = (Bit€%+_italicBit%):TEXT ,,Bit%
> Error: Expected an end Œ)¹ here...
> Example: Too many parameters, or mismatched ().
> in file HBasic.proj:HBASIC.MAIN at line 967 in DoRunCommand
> CASE "ITALIC": €Bit% = (Bit%€+_italicBit%):TEXT ,,Bit%
> Error: Missing a begin Œ(Œ Fix it...
> in file HBasic.proj:HBASIC.MAIN at line 967 in DoRunCommand
> CASE "ITALIC": Bit% = (Bit%+_italicBit%):€TEXT ,,Bit€%
> Error: A Numeric or String value expected here...
> in file HBasic.proj:HBASIC.MAIN at line 967 in DoRunCommand
> CASE "ITALIC": Bit% = (Bit%+_italicBit%):€TEXT ,,Bit€%
> Error: An Expression Expected here???
> in file HBasic.proj:HBASIC.MAIN at line 967 in DoRunCommand
> CASE "ITALIC": Bit% = (Bit%+_italicBit%):€TEXT ,,Bit€%
> Error: Expected an end Œ)¹ here...
> Example: Too many parameters, or mismatched ().
> in file HBasic.proj:HBASIC.MAIN at line 967 in DoRunCommand
> CASE "ITALIC": Bit% = (Bit%+_italicBit%):€TEXT ,,Bit%€
> Error: Missing a begin Œ(Œ Fix it...
> in file HBasic.proj:HBASIC.MAIN at line 968 in DoRunCommand
> CASE "UNDERLINE" : €Bit% = (Bit€% + _ulineBit%):TEXT ,,Bit%
> Error: A Numeric or String value expected here...
> in file HBasic.proj:HBASIC.MAIN at line 968 in DoRunCommand
> CASE "UNDERLINE" : €Bit% = (Bit€% + _ulineBit%):TEXT ,,Bit%
> Error: An Expression Expected here???
> in file HBasic.proj:HBASIC.MAIN at line 968 in DoRunCommand
> CASE "UNDERLINE" : €Bit% = (Bit€% + _ulineBit%):TEXT ,,Bit%
> Error: Expected an end Œ)¹ here...
> Example: Too many parameters, or mismatched ().
> in file HBasic.proj:HBASIC.MAIN at line 968 in DoRunCommand
> CASE "UNDERLINE" : €Bit% = (Bit% €+ _ulineBit%):TEXT ,,Bit%
> Error: Missing a begin Œ(Œ Fix it...
> in file HBasic.proj:HBASIC.MAIN at line 968 in DoRunCommand
> CASE "UNDERLINE" : Bit% = (Bit% + _ulineBit%):€TEXT ,,Bit€%
> Error: A Numeric or String value expected here...
> in file HBasic.proj:HBASIC.MAIN at line 968 in DoRunCommand
> CASE "UNDERLINE" : Bit% = (Bit% + _ulineBit%):€TEXT ,,Bit€%
> Error: An Expression Expected here???
> in file HBasic.proj:HBASIC.MAIN at line 968 in DoRunCommand
> CASE "UNDERLINE" : Bit% = (Bit% + _ulineBit%):€TEXT ,,Bit€%
> Error: Expected an end Œ)¹ here...
> Example: Too many parameters, or mismatched ().
> in file HBasic.proj:HBASIC.MAIN at line 968 in DoRunCommand
> CASE "UNDERLINE" : Bit% = (Bit% + _ulineBit%):€TEXT ,,Bit%€
> Error: Missing a begin Œ(Œ Fix it...
> in file HBasic.proj:HBASIC.MAIN at line 969 in DoRunCommand
> CASE "EXTEND" : €Bit% = (Bit€% + _extendBit%):TEXT ,,Bit%
> Error: A Numeric or String value expected here...
> in file HBasic.proj:HBASIC.MAIN at line 969 in DoRunCommand
> CASE "EXTEND" : €Bit% = (Bit€% + _extendBit%):TEXT ,,Bit%
> Error: An Expression Expected here???
> in file HBasic.proj:HBASIC.MAIN at line 969 in DoRunCommand
> CASE "EXTEND" : €Bit% = (Bit€% + _extendBit%):TEXT ,,Bit%
> Error: Expected an end Œ)¹ here...
> Example: Too many parameters, or mismatched ().
> in file HBasic.proj:HBASIC.MAIN at line 969 in DoRunCommand
> CASE "EXTEND" : €Bit% = (Bit% €+ _extendBit%):TEXT ,,Bit%
> Error: Missing a begin Œ(Œ Fix it...
> in file HBasic.proj:HBASIC.MAIN at line 969 in DoRunCommand
> CASE "EXTEND" : Bit% = (Bit% + _extendBit%):€TEXT ,,Bit€%
> Error: A Numeric or String value expected here...
> in file HBasic.proj:HBASIC.MAIN at line 969 in DoRunCommand
> CASE "EXTEND" : Bit% = (Bit% + _extendBit%):€TEXT ,,Bit€%
> Error: An Expression Expected here???
> in file HBasic.proj:HBASIC.MAIN at line 969 in DoRunCommand
> CASE "EXTEND" : Bit% = (Bit% + _extendBit%):€TEXT ,,Bit€%
> Error: Expected an end Œ)¹ here...
> Example: Too many parameters, or mismatched ().
> in file HBasic.proj:HBASIC.MAIN at line 969 in DoRunCommand
> CASE "EXTEND" : Bit% = (Bit% + _extendBit%):€TEXT ,,Bit%€
> Error: Missing a begin Œ(Œ Fix it...
> in file HBasic.proj:HBASIC.MAIN at line 970 in DoRunCommand
> CASE "OUTLINE" : €Bit% = (Bit€% + _outlineBit%):TEXT ,,Bit%
> Error: A Numeric or String value expected here...
> in file HBasic.proj:HBASIC.MAIN at line 970 in DoRunCommand
> CASE "OUTLINE" : €Bit% = (Bit€% + _outlineBit%):TEXT ,,Bit%
> Error: An Expression Expected here???
> in file HBasic.proj:HBASIC.MAIN at line 970 in DoRunCommand
> CASE "OUTLINE" : €Bit% = (Bit€% + _outlineBit%):TEXT ,,Bit%
> Error: Expected an end Œ)¹ here...
> Example: Too many parameters, or mismatched ().
> in file HBasic.proj:HBASIC.MAIN at line 970 in DoRunCommand
> CASE "OUTLINE" : €Bit% = (Bit% €+ _outlineBit%):TEXT ,,Bit%
> Error: Missing a begin Œ(Œ Fix it...
> in file HBasic.proj:HBASIC.MAIN at line 970 in DoRunCommand
> CASE "OUTLINE" : Bit% = (Bit% + _outlineBit%):€TEXT ,,Bit€%
> Error: A Numeric or String value expected here...
> in file HBasic.proj:HBASIC.MAIN at line 970 in DoRunCommand
> CASE "OUTLINE" : Bit% = (Bit% + _outlineBit%):€TEXT ,,Bit€%
> Error: An Expression Expected here???
> in file HBasic.proj:HBASIC.MAIN at line 970 in DoRunCommand
> CASE "OUTLINE" : Bit% = (Bit% + _outlineBit%):€TEXT ,,Bit€%
> Error: Expected an end Œ)¹ here...
> Example: Too many parameters, or mismatched ().
> in file HBasic.proj:HBASIC.MAIN at line 970 in DoRunCommand
> CASE "OUTLINE" : Bit% = (Bit% + _outlineBit%):€TEXT ,,Bit%€
> Error: Missing a begin Œ(Œ Fix it...
> in file HBasic.proj:HBASIC.MAIN at line 971 in DoRunCommand
> CASE "SHADOW" : €Bit% = (Bit€% + _shadowBit%):TEXT ,,Bit%
> Error: A Numeric or String value expected here...
> in file HBasic.proj:HBASIC.MAIN at line 971 in DoRunCommand
> CASE "SHADOW" : €Bit% = (Bit€% + _shadowBit%):TEXT ,,Bit%
> Error: An Expression Expected here???
> in file HBasic.proj:HBASIC.MAIN at line 971 in DoRunCommand
> CASE "SHADOW" : €Bit% = (Bit€% + _shadowBit%):TEXT ,,Bit%
> Error: Expected an end Œ)¹ here...
> Example: Too many parameters, or mismatched ().
> in file HBasic.proj:HBASIC.MAIN at line 971 in DoRunCommand
> CASE "SHADOW" : €Bit% = (Bit% €+ _shadowBit%):TEXT ,,Bit%
> Error: Missing a begin Œ(Œ Fix it...
> in file HBasic.proj:HBASIC.MAIN at line 971 in DoRunCommand
> CASE "SHADOW" : Bit% = (Bit% + _shadowBit%):€TEXT ,,Bit€%
> Error: A Numeric or String value expected here...
> in file HBasic.proj:HBASIC.MAIN at line 971 in DoRunCommand
> CASE "SHADOW" : Bit% = (Bit% + _shadowBit%):€TEXT ,,Bit€%
> Error: An Expression Expected here???
> in file HBasic.proj:HBASIC.MAIN at line 971 in DoRunCommand
> CASE "SHADOW" : Bit% = (Bit% + _shadowBit%):€TEXT ,,Bit€%
> Error: Expected an end Œ)¹ here...
> Example: Too many parameters, or mismatched ().
> in file HBasic.proj:HBASIC.MAIN at line 971 in DoRunCommand
> CASE "SHADOW" : Bit% = (Bit% + _shadowBit%):€TEXT ,,Bit%€
> Error: Missing a begin Œ(Œ Fix it...
> in file HBasic.proj:HBASIC.MAIN at line 972 in DoRunCommand
> CASE "CONDENSE" : €Bit% = (Bit€% + _condenseBit%):TEXT ,,Bit%
> Error: A Numeric or String value expected here...
> in file HBasic.proj:HBASIC.MAIN at line 972 in DoRunCommand
> CASE "CONDENSE" : €Bit% = (Bit€% + _condenseBit%):TEXT ,,Bit%
> Error: An Expression Expected here???
> in file HBasic.proj:HBASIC.MAIN at line 972 in DoRunCommand
> CASE "CONDENSE" : €Bit% = (Bit€% + _condenseBit%):TEXT ,,Bit%
> Error: Expected an end Œ)¹ here...
> Example: Too many parameters, or mismatched ().
> in file HBasic.proj:HBASIC.MAIN at line 972 in DoRunCommand
> CASE "CONDENSE" : €Bit% = (Bit% €+ _condenseBit%):TEXT ,,Bit%
> Error: Missing a begin Œ(Œ Fix it...
> in file HBasic.proj:HBASIC.MAIN at line 972 in DoRunCommand
> CASE "CONDENSE" : Bit% = (Bit% + _condenseBit%):€TEXT ,,Bit€%
> Error: A Numeric or String value expected here...
> in file HBasic.proj:HBASIC.MAIN at line 972 in DoRunCommand
> CASE "CONDENSE" : Bit% = (Bit% + _condenseBit%):€TEXT ,,Bit€%
> Error: An Expression Expected here???
> in file HBasic.proj:HBASIC.MAIN at line 972 in DoRunCommand
> CASE "CONDENSE" : Bit% = (Bit% + _condenseBit%):€TEXT ,,Bit€%
> Error: Expected an end Œ)¹ here...
> Example: Too many parameters, or mismatched ().
> in file HBasic.proj:HBASIC.MAIN at line 972 in DoRunCommand
> CASE "CONDENSE" : Bit% = (Bit% + _condenseBit%):€TEXT ,,Bit%€
> 
> --
>