Login Page - Create Account

Support Board


Date/Time: Thu, 02 May 2024 10:52:39 +0000



Post From: SCSting::Left does not work

[2019-04-24 08:37:24]
User189399 - Posts: 43
I captured the description of SCString::Left from the SC web site
ACSIL Programming Concepts

It said the count support -ve number. Pls note I have also tested with +ve count number. It return the same result without removal the chars from the left.

SCString::Left()
Type: Function

SCString Left(int Count) const;

The Left() function returns the substring from the SCString object that is the number of characters defined by Count starting from the left side (beginning) of the SCString object when Count is positive. If Count is negative, then the substring starts at the left side (beginning) of the SCString ojbect, but has Count number of characters removed from the right side (end) of the SCString object. If Count is negative and would result in the return of no data, then a NULL string is returned.