Page 1 of 1

garbage at the end of the line

Posted: Mon Nov 17, 2014 4:33 pm
by johnorourke1351
Hi,
I'm sure this is a newbie problem but after reviewing a few solutions offered on the forum I don't see how they apply in my case.

I'm getting a "Line 9: Garbage at the end of the line" compiler errror

Here is the sample code which is a tutorial example of how to use masks and filters:

; Masked_Input - by TerryHough - May 26, 2004
; - updated by TerryHough - Apr 28,2005
; fixed loop bug with decimal alignment on currency masks

; Requires SplashMsg.pbi to be included at the end of the program
; with the procedure declared here
Declare SplashMessage(timer)
; Filter.s = "" generates the first error
Filter$.s = ""
numeric.s = "0123456789"
alphabetic.s = " ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
hyphen.s = "-"
ampersand.s = "&"

Thanks for any help
John O'Rourke

Re: garbage at the end of the line

Posted: Mon Nov 17, 2014 4:39 pm
by Karellen
johnorourke1351 wrote: Filter$.s = ""
Remove the $ or the .s in this expression.
You declared the data type 'String' twice.

P.S.: You also should put sample code inside the code tags.

Re: garbage at the end of the line

Posted: Mon Nov 17, 2014 4:39 pm
by skywalk

Code: Select all

Filter$ = "" ;NOT Filter$.s
And please use the [codex][/codex] blocks.

Re: garbage at the end of the line

Posted: Mon Nov 17, 2014 4:45 pm
by johnorourke1351
Thanks. I will comply with your suggestions.

John