Patch level :

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :
Migliorata connessione a tabella BNP


git-svn-id: svn://10.65.10.50/trunk@20298 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2010-03-30 14:53:11 +00:00
parent bf99b4a1ab
commit 7640483af1
2 changed files with 5 additions and 20 deletions

View File

@ -2613,22 +2613,13 @@ bool TBrowse::do_link(bool insert)
{
bool ok = false;
TString app;
if (_insert[0] == 'M')
{
TString nm(_insert.mid(1));
if (nm.compare("tb", 2, true) == 0) // Programma gestione tabelle
_cursor->file().get_relapp(app);
else // Programma generico di browse/edit
app.format("ba3 -3 %s %d", (const char*)nm, _cursor->file().num());
}
if (_insert.starts_with("MTB", true))
_cursor->file().get_relapp(app);
else
{
app = _insert.mid(1);
}
if (app.find('#') >= 0)
{
TString w(app);
const TString w(app);
app = "";
for (const char* f = w; *f; f++)
{

View File

@ -281,16 +281,10 @@ bool TTable::get_relapp(TString& app) const
app = fi._tabapp;
if (app.empty())
app = fi._relapp;
if (app.empty() && fi._module.compare("ba", 2, TRUE) != 0)
app = ini_get_string(CONFIG_STUDIO, fi._module, "TabPrg");
if (app.empty())
{
app = "ba3 -0";
if (fi._module.compare("ba", 2, TRUE) != 0)
{
TConfig c(CONFIG_STUDIO, fi._module);
if (c.exist("TabPrg"))
app = c.get("TabPrg");
}
}
app << ' ';
if (num() == LF_TABCOM)
app << '%';