Thanks you guys. The hyphen is in a lot of code and too hard to change. When 
things are seen in the user interface, the underscore
is difficult to see sometimes. The hyphen always works well with clients. When 
it is used in the program, I used chrtran() and
there are no problems.

I am up for the pint, but I guess you guys are too far away.



----- Original Message ----- 
From: "Dave Crozier" <[EMAIL PROTECTED]>
To: "'ProFox Email List'" <profox@leafe.com>
Sent: Tuesday, August 19, 2008 8:29 AM
Subject: RE: VFP9 SP1 bug?


Peter,
That is exactly the point I was trying to make but it got lost in the wash
somewhere. If Kam wants to do the check using Used() then he needs to change
the alias to the internal one that VFP uses - as you have correctly stated.

However, the reason for the error is that the "-" character can be
interpreted incorrectly if VFP uses it as part of an alias - which it of
course can't, hence the "_" substitution.

Dave

PS. could do with a pint and another curry sometime if you are up for it,
mmmmmm!


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Peter Cushing
Sent: 19 August 2008 12:21
To: profox@leafe.com
Subject: Re: VFP9 SP1 bug?

Dave Crozier wrote:
> Kam,
> Just to elaborate, if you think about it then the default alias of the
table
> becomes sample-p, which can be misinterpreted by a parser as being an
actual
> expression - hence the error.
>
Hi Dave,

Using VFP7 when I open a table of this name the default alias becomes
SAMPLE_P and it won't let you open with alias SAMPLE-P

> You would never call a table sample*p.dbf as this error would be an
obvious
> misuse of the "*" character and using the "-" has exactly the same effect
> even though it is not as obvious.
>
The * character can't be used in a file name but a "-" can.  I generate
PDF's with "-" in the name no problem, but it looks like Fox just
doesn't like the "-" char in aliases.  It doesn't mind it in the file name.

Peter



----------------------------------------------------------------------------
------------
This communication and the information it contains is intended for the
person or organisation to whom it is addressed.Its contents are confidential
and may be protected in law.  Unauthorised use, copying or disclosure of any
of it may be unlawful.If you have received this message in error, please
notify us immediately by telephone or email.


While Rajan Imports has taken every reasonable precaution to minimise the
risk of virus transmission through email, we cannot accept liability for any
damage which you sustain as a result of software viruses.
It is the responsibility of the recipient to ensure that they have adequate
virus protection.

www.rajan-group.co.uk

Rajan Imports Ltd
Head Office:61 Great Ducie Street, Manchester M3 1RR. Tel:0161 831 3700
Fax:0161 831 3715

London Office:17-19 Foley Street, London  W1W 6DW Tel:0207 299 7960




[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to