Help: #OCX.<<PROPERTY-xxxxxxx>>

Hi,

I nedd your help about: like handle the property of OCX of windows. example TDpickert and other :shock:

use the Natural Component Browser to find the handle of any installed ActiveX component.

Thank a lot,

but I have error:

#aa := "23/06/2006"
#OCX-1.<<PROPERTY-Value>> := #aa
is correct
#bb := #OCX-1.<<PROPERTY-value>>
write #bb
bad, return '00:00:00'

:frowning: please help

Already resolvi

A gift for the community, from Venezuela:


*
* Por: Angel Mendoza O - Jul 2006
*        Venezuela 
*
DEFINE DATA PARAMETER
1 #DTPICKER HANDLE OF <<OCX-MSComCtl2.DTPicker.2>>
1 #FEC             (A10)
1 #COMO            (N1)  /* 0=AAAAMMDD ; 1=DD/MM/AAAA
LOCAL
1 aaaa (n04)
1 #mm   (a02)
1 redefine #mm   
  2 mm  (n02)  
1 #dd   (a02)
1 redefine #dd 
  2 dd   (n02)

END-DEFINE
dd   := #DTPICKER.<<property-day>>
mm   := #DTPICKER.<<property-month>>
aaaa := #DTPICKER.<<property-year>>

IF #como = 0
  compress numeric aaaa #mm #dd into #fec  leaving no space
else
  compress numeric #dd '/' #mm '/' aaaa into #fec leaving no space
end-if
end