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:
parent
bf99b4a1ab
commit
7640483af1
@ -2613,22 +2613,13 @@ bool TBrowse::do_link(bool insert)
|
|||||||
{
|
{
|
||||||
bool ok = false;
|
bool ok = false;
|
||||||
TString app;
|
TString app;
|
||||||
|
if (_insert.starts_with("MTB", true))
|
||||||
if (_insert[0] == 'M')
|
|
||||||
{
|
|
||||||
TString nm(_insert.mid(1));
|
|
||||||
if (nm.compare("tb", 2, true) == 0) // Programma gestione tabelle
|
|
||||||
_cursor->file().get_relapp(app);
|
_cursor->file().get_relapp(app);
|
||||||
else // Programma generico di browse/edit
|
|
||||||
app.format("ba3 -3 %s %d", (const char*)nm, _cursor->file().num());
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
app = _insert.mid(1);
|
app = _insert.mid(1);
|
||||||
}
|
|
||||||
if (app.find('#') >= 0)
|
if (app.find('#') >= 0)
|
||||||
{
|
{
|
||||||
TString w(app);
|
const TString w(app);
|
||||||
app = "";
|
app = "";
|
||||||
for (const char* f = w; *f; f++)
|
for (const char* f = w; *f; f++)
|
||||||
{
|
{
|
||||||
|
@ -281,16 +281,10 @@ bool TTable::get_relapp(TString& app) const
|
|||||||
app = fi._tabapp;
|
app = fi._tabapp;
|
||||||
if (app.empty())
|
if (app.empty())
|
||||||
app = fi._relapp;
|
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())
|
if (app.empty())
|
||||||
{
|
|
||||||
app = "ba3 -0";
|
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 << ' ';
|
app << ' ';
|
||||||
if (num() == LF_TABCOM)
|
if (num() == LF_TABCOM)
|
||||||
app << '%';
|
app << '%';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user