Exactly, this is one of those weird features (hidden extension) of xhb. I can only suggest to clean such code to "Asc( c ) == 13". This code works with all existing xbase dialects, has the same speed, easier to type, easier to read, so you will only win. The real task is to find such lines in code.
I don't think this feature is supported even by linking xhb lib. Brgds, Viktor On Tue, Apr 14, 2009 at 10:08 PM, Pritpal Bedi <bediprit...@hotmail.com>wrote: > > Hi > > > sygecom wrote: > > > > First of sorry for the post, but I'm moving to Harbour, I'm full of > > questions to resolve. > > Below is another example that compiling and running without problems in > > xHarbour, but when you try to run with harbor it generates an error on > the > > line 'if asc (cCaractere) == chr (13)' > > > > Everybody is welcome. Group will be more than glad to respond you. > > asc( cCharacter ) == chr( 13 ) > > Does not it looks weired. > How you can compare NUMERIC with CHARCATER? > You could have compared it as : cCharacter == chr( 13 ). > Did you check it with Clipper ? > > NOTE: In xHarbour ONE character string is treated as a number > so you were able to compare as above. I know that in C it works like > it is implemented in xHarbour but we are accustomed to the language > CLIPPER. > > Now I know that in one of projects under my supervision blow up randomely > and error log always report that comparison operands are not of same > type. > > Hope you may be clear now. > > BTW there is some compiler switch in Harbour which mimmics this behaviour. > correct and complete me if right ... > > Regards > Pritpal Bedi > > > > -- > View this message in context: > http://www.nabble.com/Error-in-function-to-create-the-Word-file-tp23046678p23047016.html > Sent from the Harbour - Dev mailing list archive at Nabble.com. > > _______________________________________________ > Harbour mailing list > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour >
_______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour