Hi All:

Pls note that in Xbase++ you can use a string ans if it was an array of chars.
eg:   cString := 'abc'
      ? cString[2]   --->  'b'
      ? cString[-1]  --->  'c'

Another very usefull feature is the 3rd parameter in:
At( <cSubString>, <cString> [,<nStartPos>] ) --> nPosition

HTH
Angel


Pritpal Bedi escribió:
Hello Przem


Przemyslaw Czerpak-2 wrote:
It's not like in C and never was. I do not understand why Ron is repeated
that it tries to mimic C because it's not true.
In C you cannot make:
   "A" == 65


Exactly. This is what I was trying to explain.

But I suggest to rather clean the code then use such things.

That appln when compiled with xHarbour blows up. With Harbour it just runs fine.

Personaly I do not like to use string as array of numbers though.

Thanks for the detailed explanation, it will reduce queries on this subject.

Regards
Pritpal Bedi

best regards,
Przemek
_______________________________________________
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

Reply via email to