Estoy usando MySQL 4.1.12
Al compilar el sample tutor15b partir del siguiente código, pasa lo siguiente:
if !oTb:Open()
MyMsg( "No se puede abrir la Tabla: " + oTb:cName )
FreeFromArray( aObj )
return( 0 )
else
//aEval( oTb:aStruct, {|a| wqout({a[1],a[2]}) })
if oTb:RecCount() < 1
oTb:aBuffer := { , "Marito González", ;
"mario.r.gonzalez@...", ;
"Resitencia", ;
"Argentina", ;
"S","S", ;
"Que se io?", ;
"2005-10-01", ;
"50","" }
end
La Tabla se crea correctamente, El registro se inserta, pero, todos los valores son (NULL)
Hice lo siguiente, cambié oTb:aBuffer por
oTB:Id := nil
oTB:Nombre := "Marito González"
...
Produciéndose el siguiente error:
Application
===========
Path and name: D:\EAGLE1\SAMPLES\TUTOR15B.EXE (32 bits)
Size: 1,256,448 bytes
Time from start: 0 hours 0 mins 2 secs
Error occurred at: 03/04/2006, 11:06:15
Error description: Error BASE/1005 Message not found: TMSTABLE:_ID
Stack Calls
===========
Called from TMSTABLE:ERROR(175)
Called from (b)HBOBJECT(105)
Called from TMSTABLE:MSGNOTFOUND(0)
Called from TMSTABLE:_ID(167)
Called from MAIN(96)
Luego de mirar el tutor10, observo que abre la Tabla mediante otro método; oTb := TMyTable():New( oDb, cTable )
Reemplazo oTb := TMyTable():New( oDb, cTable ) por la llamada anterior y, el registro se inserta correctamente.
En la combinacion Crear Tabla - Insertar mediante oTb:Nombre:= ...; el error, arriba expuesto, tambien se manifiesta
Estoy haciendo algo mal?
Saludos
--
Ing.
Mario
R. González
Movil. (03722) 15 648570
Part.. (03722) 43 7558
Lab. (03722) 42 0076 Int 137
correo-e 1: mrgonzalez_arroba_gigared.com
2: mgonzalez_arroba_ing.unne.edu.ar
3: mario.r.gonzalez_arroba_gmail.com
Resistencia "Ciudad de las Esculturas"
Chaco - Argentina