Home > Back-end >  BCB how to obtain a certain fields in the NTH position left or right side of the field
BCB how to obtain a certain fields in the NTH position left or right side of the field

Time:10-24

BCB how to obtain a certain fields in the NTH position left or right side of the field?

Example:

AnsiString CanShu="(T315 RE30X5 30, 5, 0, 90)";
AnsiString ToolName=(the first Spaces to the first comma before the first space between the field); (i.e., RE30X5)
AnsiString var1=(... The first comma before the first space between the first comma before a field... ) (30)
AnsiString var2=... 5
AnsiString var3=... 90

CodePudding user response:

CodePudding user response:

CodePudding user response:

String is Dstr="c + + Builder is the BEST"
LeftStr (Dstr, 9)="c + + Builde
"MidStr (Dstr, 10, 7)="r is th
"RightStr Dstr, (6)="e BEST." "

CodePudding user response:

refer to the second floor QZJHJXJ response:

Help if there are two entries, it is better to check the VCL, CLX class library belongs to history, some things are different,
  • Related