Patch level : 4.0 426

Files correlati     :  ve0.exe ve2.exe
Ricompilazione Demo : [ ]
Commento            :

Eliminato controllo sui caratteri oltre 128

ricopiare sulla 2.2 e compilare per gelai


git-svn-id: svn://10.65.10.50/trunk@14078 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2006-06-14 14:43:26 +00:00
parent a30f1867ed
commit f24e8036d9

View File

@ -3787,14 +3787,6 @@ bool TEdit_field::on_key(KEY key)
set_dirty(TRUE);
return handler(K_SPACE);
default:
if (_ctl->is_edit_key(key))
{
// Nei campi di ricerca devo rifiutare i caratteri strani (comprese le accentate)
const bool ok = (key >= ' ' && key < 128) || browse()==NULL;
if (!ok)
beep();
return ok;
}
break;
}
@ -4029,18 +4021,7 @@ bool TDate_field::on_key(KEY key)
return FALSE;
}
else
{
#ifdef _DEMO_
TDate d(data);
int m = d.month();
if (m > 3)
d.set_month(rand() % 3 + 1);
set_window_data(d.string());
#else
set_window_data(data);
#endif
}
}
}
else
@ -4078,23 +4059,7 @@ bool TDate_field::autosave(TRelation& r)
if (field())
{
const char* td = get();
#ifdef _DEMO_
{
TDate d(td);
int y = d.year();
y += 8;
y /= 25;
y >>= 3;
if (y >= 10)
{
int m = d.month() >> 2;
if (m > 0)
d.set_month(rand() % 3 + 1);
}
td = d.string();
}
#endif
if (right_justified())
{
TDate d(td);