database - VFP Grid + SQL server 2008 - grid not showing correctly -
i having problem, have grid called "gridbasica" , this:
thisform.gridbase.recordsource = "sgviemp"
sgviemp cursor made executing select sqlserver command sqlexec.
when want modify registry, go form , the update there. so, when come form grid, grid isnt grid anymore, big white rectangle.
reading around said: delete recordsource , asingt again.
thisform.gridbase.recordsource = "" *--i sqlexe here thisform.gridbase.recordsource = "sgviemp"
i , works, but, when click button modify again cursos updated modify form doesnt load fields did first time.
could me out that?
thanks in advance.
--------------- edit ------------------
i have been doing recommended:
lnselect = select(0) n = sqlexec(thisform.conexion,"select emp_ccodigo codigo, emp_cnombre 'nombre o razon social', emp_cnumrif 'r.i.f' sgviempr","sgviemp1") set echo on suspend select sgviemp zap in sgviemp *-- browse *--zaps correctly *-- select sgviemp1 *-- browse *-- sgviemp1 full append dbf( 'sgviemp1' ) use in sgviemp1 *-- browse *--shows sgviemp1 empty *-- select sgviemp *-- browse *--shows sgviemp empty
and doesnt load in grid
don't ever destroy , recreate cursor grid based on. instead, use "safe select," create cursor ahead of time , when need repopulate it, zap , append new data:
http://fox.wikis.com/wc.dll?wiki~gridsafeselect~wiki
tamar
Comments
Post a Comment