Try it this:
1) create a datawindow and save it (dw_test)
2)
datastore lds
lds = create datastore
lds.dataobject = "dw_test"
lds.SetTransObject( SQLCA_2 )
lds.Retrieve()
3) don't forget to destroy it when finished
destroy lds
Hi Try this:
long ll_rows, i
integer li_del
ll_rows = dw_3.RowCount()
for i = 1 to ll_rows
li_del = adw.GetItemString(i, "mark")
if li_del = "y" then
adw.DeleteRow(i)
i--
ll_rows--
end if
next
Hi Kido,
If you use SQL Server, try this:
select c1, sum(isnull(case c4 when 'T' then c2 end,0) ) as C2_T, sum(isnull(case c4 when 'X' then c2 end,0) ) as C2_X,
sum(isnull(case c4 when 'T' then c3 end,0) ) as C3_T, sum(isnull(case c4 when 'X' then c3 end,0) ) as C3_X
from __test
group by c1...
Hi,
i recetly had the same problem. I noticed that if the column > 255 on the DB, the datawindow retrieves only the first 255 char.
The solution i found is to convert the column type to text. You must disable and enable the column in your datawindow again, and it should be ok.
Hi,
I have a dddw field, and i would like that when the user types the first letters, this field gets automaticaly filled with a proposition (ex: user types "Eu", the field proposes "Europe" which is in the dddw list).
PS: the field is allowed to editing.
Can someone help?
thanks
DR
Hi everybody,
Trying unsuccessfully to find the correct syntax to move a sheet in excel through OLE. (PB 8.02 with WXP pro.)
Code which is ok:
----------------
xlapp.Application.ActiveWorkbook.Worksheets.Add
xlapp.Application.ActiveWorkbook.Worksheets("sheet1").Name = "last"
xlsub =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.