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
garbage at the end of the line
-
johnorourke1351
- User

- Posts: 37
- Joined: Sun Nov 02, 2014 6:23 pm
- Location: Los Angeles
Re: garbage at the end of the line
Remove the $ or the .s in this expression.johnorourke1351 wrote: Filter$.s = ""
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...
Re: garbage at the end of the line
Code: Select all
Filter$ = "" ;NOT Filter$.sThe nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
-
johnorourke1351
- User

- Posts: 37
- Joined: Sun Nov 02, 2014 6:23 pm
- Location: Los Angeles
Re: garbage at the end of the line
Thanks. I will comply with your suggestions.
John
John
