Riportate dalla vecchia 11.0 funzioni necessarie a ve per maschera handlers
git-svn-id: svn://10.65.10.50/branches/R_10_00@22645 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
225725bb5a
commit
12fe75b20a
1884
include/config.cpp
1884
include/config.cpp
File diff suppressed because it is too large
Load Diff
@ -126,6 +126,9 @@ public:
|
||||
// @cmember Elimina una variabile nel paragrafo attivo
|
||||
bool remove(const char* var, int index = -1);
|
||||
|
||||
// @cmember Elimina una array di variabili nel paragrafo attivo
|
||||
bool remove_array(const char* var);
|
||||
|
||||
// @cmember Elimina tutte le variabili nel paragrafo attivo
|
||||
void remove_all();
|
||||
|
||||
|
@ -1912,7 +1912,8 @@ int TSystemisamfile::update(
|
||||
{
|
||||
if (newrec.len() == 0)
|
||||
{
|
||||
error_box(FR("Il nuovo tracciato per il file %d e' vuoto"), num());
|
||||
if (interactive)
|
||||
error_box(FR("Il nuovo tracciato per il file %d e' vuoto"), num());
|
||||
setstatus(_istrcerr);
|
||||
return status();
|
||||
}
|
||||
@ -3606,7 +3607,8 @@ char TRectype::get_char(const char* fieldname) const
|
||||
|
||||
bool TRectype::get_bool(const char* fieldname) const
|
||||
{
|
||||
return get_char(fieldname) == 'X';
|
||||
const char c = get_char(fieldname);
|
||||
return strchr("XY1", c) != NULL;
|
||||
}
|
||||
|
||||
TDate TRectype::get_date(const char* fieldname) const
|
||||
@ -3618,7 +3620,7 @@ TDate TRectype::get_date(const char* fieldname) const
|
||||
void TRectype::put(const char* fieldname, int val)
|
||||
{
|
||||
char tmp[16];
|
||||
itoa(val, tmp, 10);
|
||||
_itoa_s(val, tmp, 10);
|
||||
put_str(fieldname, tmp);
|
||||
}
|
||||
|
||||
@ -3626,7 +3628,7 @@ void TRectype::put(const char* fieldname, int val)
|
||||
void TRectype::put(const char* fieldname, long val)
|
||||
{
|
||||
char tmp[16];
|
||||
ltoa(val, tmp, 10);
|
||||
_ltoa_s(val, tmp, 10);
|
||||
put_str(fieldname, tmp);
|
||||
}
|
||||
|
||||
|
@ -296,6 +296,8 @@ public:
|
||||
// @cmember Controlla se il campo e' abilitato di default
|
||||
bool enabled_default() const
|
||||
{ return _flags.enable_default; }
|
||||
bool shown_default() const
|
||||
{ return _flags.show_default; }
|
||||
|
||||
// @cmember Permette di rendere visibile/invisibile un campo
|
||||
virtual void show(bool on = true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user