if ((sLabelName!="whatever") && (sLabelName!="whatever2")){
//sCheckState = trimWhitespace(sPossibleStates)
int iStringLength = length(sPossibleStates)
//for (i=0; i < iStringLength ; i++){
if (findPlainText (sPossibleStates, ",", stateOffset, stateLength, false)){
sPossibleStates[stateOffset] = ';'
}
if (findPlainText (sPossibleStates, " ", stateOffset, stateLength, false)){
sPossibleStates[stateOffset] = ""
}
if (findRichText (sPossibleStates, "\n", stateOffset, stateLength, false)){
if (sPossibleStates[stateOffset-1] == ';'){
sPossibleStates[stateOffset] = ""
}
else{
sPossibleStates[stateOffset] = ';'
}
}
//}
o."PossibleStates" = sPossibleStates
}
I have this dxl, but in the part of the "findPlanText" I keep getting the error message:
-E- DXL: <Line:199> incorrect arguments for (=)
-E- DXL: <Line:202> incorrect arguments for (=)
-E- DXL: <Line:206> incorrect arguments for (=)
-E- DXL: <Line:209> incorrect arguments for (=)
That were the lines of the dxl above, but reading the dxl manual I couldn't find what is wrong. Can somebody help me? braolive - Fri Dec 13 06:38:07 EST 2013 |
Re: help - findPlainText from the DXL manual (my bold and underlining) Substring extraction from string
The index notation,
As I understand it that does not mean that you can assign anything to that substring. Anyway in two places you are assigning an empty/null string to a character in the string... which would do what? You should be building a new string from the old string something like:
/sekrbo
|
Re: help - findPlainText sekrbo - Fri Dec 13 07:10:07 EST 2013 from the DXL manual (my bold and underlining) Substring extraction from string
The index notation,
As I understand it that does not mean that you can assign anything to that substring. Anyway in two places you are assigning an empty/null string to a character in the string... which would do what? You should be building a new string from the old string something like:
/sekrbo
It worked perfectly. Thanks for the tip! |