* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
*
* nastavi pro preddefinovane datove adresare nebo nazev sql databaze promennou wi_zakaz, pokud neni vyplnena
* taky nastavi promennou dbf2csv_format pro nastaveni konverze do CSV
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 

DO CASE 
*CASE .not. EMPTY(m.wi_zakaz)
    *nic

CASE ATC("BUDVAR", m.sqldatabaza + m.gchom_path) + ATC("MASO", m.sqldatabaza + m.gchom_path) + ATC("MASNEKRAMY", m.sqldatabaza + m.gchom_path) + ATC("MALYPIVO", m.sqldatabaza + m.gchom_path) + ATC("KRUMLOV", m.sqldatabaza + m.gchom_path) > 0
    wi_zakaz = "BUDVAR"
    WAIT m.wi_zakaz AT 22,22 WINDOW TIMEOUT 1

CASE ATC("_TRAUTEN", m.sqldatabaza + m.gchom_path) + ATC("_HOSTIVAR", m.sqldatabaza + m.gchom_path) > 0
    wi_zakaz = "HLOBIK"
    WAIT "pivovary" AT 22,22 WINDOW TIMEOUT 1

ENDCASE     

DO CASE 
CASE ATC("ELFETEX", m.sqldatabaza + m.gchom_path) + ATC("_xxxx", m.sqldatabaza + m.gchom_path)  > 0
    publikuj("dbf2csv_format", "COMMA")
OTHERWISE
    publikuj("dbf2csv_format", "POINT")
ENDCASE 

dopln_wi_zakaz()
