el problema surge con el GRID y ventanas MODAL no muestran los datos que estan en la tabla.
esa misma ventana MODAL ejecutada como MAIN los datos son mostrados correctamente.
Translate Google
Same problem is not encoding as the temporary table TemPlant load properly with data from other tables.
the problem arises with the GRID MODAL windows and no data are shown in the table.
MODAL window executed the same as MAIN data is displayed correctly.
Code: Select all
#include <hmg.ch>
Function Main
use Templant new
DEFINE WINDOW W_Imp1z ;
AT 10,10 ;
WIDTH 1100 HEIGHT 650 ;
TITLE " PLANTILLAS " ;
main
@ 50,10 GRID Grid_P1 ;
WIDTH 1050 ;
HEIGHT 400 ;
HEADERS { 'Selecciona', 'Descripcion', 'Prescripcion', 'Via', 'Cant' } ;
WIDTHS { 50 , 400 , 300 , 120 , 80 } ;
ROWSOURCE "TemPlant" ;
COLUMNFIELDS { 'Si' , 'Nombre' , 'Prescribe' , 'Via', 'Cantidad' } ;
EDIT ;
VALUE { 1 , 1 } ;
COLUMNCONTROLS { {'TEXTBOX' ,'CHARACTER'} , {'TEXTBOX' ,'CHARACTER'} , {'TEXTBOX','CHARACTER'} , ;
{'TEXTBOX' ,'CHARACTER'} , {'TEXTBOX' ,'NUMERIC' ,'999'} } ;
ALLOWAPPEND
@ 495, 200 BUTTON B_Agr CAPTION 'Agregar Item'
@ 510, 510 BUTTON B_Ace CAPTION 'Grabar'
@ 510, 635 BUTTON B_Can CAPTION 'Salir'
END WINDOW