garbage at the end of the line

Everything else that doesn't fall into one of the other PB categories.
johnorourke1351
User
User
Posts: 37
Joined: Sun Nov 02, 2014 6:23 pm
Location: Los Angeles

garbage at the end of the line

Post 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
Karellen
User
User
Posts: 84
Joined: Fri Aug 16, 2013 2:52 pm
Location: Germany

Re: garbage at the end of the line

Post 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.
Last edited by Karellen on Mon Nov 17, 2014 4:41 pm, edited 1 time in total.
Stanley decided to go to the meeting room...
User avatar
skywalk
Addict
Addict
Posts: 4316
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: garbage at the end of the line

Post by skywalk »

Code: Select all

Filter$ = "" ;NOT Filter$.s
And please use the [codex][/codex] blocks.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
johnorourke1351
User
User
Posts: 37
Joined: Sun Nov 02, 2014 6:23 pm
Location: Los Angeles

Re: garbage at the end of the line

Post by johnorourke1351 »

Thanks. I will comply with your suggestions.

John
Post Reply