﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
590	Function BDBOpen in Tol 1.1.6	Javier Portugal	Víctor de Buen Remiro	"This code raises an error in TOL 1.1.6 while in TOL 1.1.5 works perfectly

Struct TextoLineaSt
{
  Text Line
};

Text File = ""C:/sample.txt"";
Set fileHdl = BDBOpen(File, 0, """", """", ""TextoLineaSt"");
Set cabecera = Tokenizer((BDBReg(fileHdl, 1))->Line, "";"");
Real BDBClose(fileHdl);



File sample.txt should contain at least one line with any text (separated by ;), for example:

COD_BLOQUEIO;Contrato;DDD_Terminal;Filial;Segmento;PLANO_TARIFARIO;REF
0000;1130067227;;GO;B99;PROMOCAO LANCAMENTO PULA-PULA;200801
0000;1130067227;;GO;B99;PROMOCAO LANCAMENTO PULA-PULA;200802

Follows the error in tol 1.1.6:
ERROR: [5] _BDB_1_ no es una base de datos BDB

ERROR: [6]  no es una base de datos BDB

ERROR: [7] Intento de acceso al campo Line para un conjunto sin estrutura

Warning: [1] La función Field (ó -> ) ha fallado en : 
set->Line

ERROR: [8] Argumentos erróneos para Set Tokenizer (Text cadena, Text separador)

ERROR: [9] cabecera no se pudo crear.

ERROR: [10] _BDB_1_ no es una base de datos BDB

ERROR: [11]  no es una base de datos BDB"	defect	closed	high		Various	1.1.6	critical	fixed		
