Modifica 95/1

Aggiunto riconscimento del valore di un campo nelle "add"


git-svn-id: svn://10.65.10.50/trunk@1665 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1995-08-03 13:47:59 +00:00
parent 376f32383f
commit 641a5a11a1

View File

@ -324,8 +324,6 @@ int TMask_field::create_prompt(
#if XVT_OS == XVT_OS_WIN
const int k = _prompt.find('~');
if (k >= 0) _prompt[k] = '&';
// if (required() && _prompt[0] != '@')
// _prompt.insert("@b", 0);
#endif
_promptwin = xvt_create_control
(
@ -1516,7 +1514,24 @@ bool TBrowse::do_insert()
{
app = &_insert[1];
}
if (app.find('#') != -1)
{
TString80 w(app);
app = "";
for (const char* f = w; *f; f++)
{
if (*f == '#')
{
const int id = atoi(++f);
app << _fld->mask().get(id);
while (isspace(*f)) ++f;
while (isdigit(*f)) ++f;
app << ' ';
}
else
app << *f;
}
}
TMailbox mail;
TMessage msg(app, MSG_AI, "");
mail.send(msg);