field = question
Kenneth Brody
kenbrody at spamcop.net
Fri Nov 20 09:06:15 PST 2009
Richard Kreiss wrote:
> I think this has been discussed previously but....
>
> Declare filename
> ::filename="market_memo@"{""
>
> If:filename eq "market_memo@"
> then:GOTO foobar
> if:filename eq "market_memo at archive"
> then:GOTO foobar1
>
> Both will test true when filename="market_memo@"
>
> When I change declare filename(32,*) and run the same programming, the test
> works properly.
>
> What is the difference between the cast and uncast declaration of filename
> allowing one to work and the other to "fail"?
One has trailing spaces, and the other does not. This is no different than:
If: LastName = "b"
which will match "Brody", whereas this will not:
If: LastName = "b "
--
Kenneth Brody
More information about the Filepro-list
mailing list