www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - ControlExample.d

I am still looking for a compile of this and the recent update to include
"DateTime.d" is jumping out at line 596.

Now the section of code does not look right
void commitCurrentField() {
    if (characterCount > 0) {
        characterCount = 0;
        int fieldName = fieldNames[currentField];
        int start = fieldIndices[currentField].x;
        int end = fieldIndices[currentField].y;
        char[] value = text.getText(start, end - 1);
        int s = value.lastIndexOf(' ');<-------------------------here ! This
sets it at null doesn't it ?
        if (s !is -1) value = value.substring(s + 1);
        int newValue = unformattedIntValue(fieldName, value, characterCount is
0, 
Mar 05 2008