Post
by Jeff Luther » 08 Jun 2007, 22:39
Posted by: Jeff Luther
Well... hWinColumnaDestino is a null/0 window handle! so your call to
SalSetWindowText( hWinColumnaDestino, sDato ) will never work. You need
to have a valid window handle for your Destino/destination column. Here's
how to do it:
Variables
Number: nColID
Set nColID = SalTblCreateColumn( hWinTablaDestino, ... ) ! you have this as "Call..."
! now convert the ID to its window handle for the SalSetWindowText() calls
Set hWinColumnaDestino = SalTblGetColumnWindow ( hWinTablaDestino, nColID, COL_GetID )
(A good way to debug is to set your breakpoint, single step and test the values of
your variables. On the SalSetWindowText(...) call hWinColumnaDestino = 0.)
Another good thing to do is *always* save your tests and samples in text/APT mode,
not binary mode, when you upload here.
Best Regards,
Jeff @ PC Design
info. & samples: www.JeffLuther.net/gupta/