March 06, 2008 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,
| ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply