Hi Przemek,

I already tryed that.

oReport:Set("RECORDSELECTIONFORMULA" , '{FFAC.CODJOU} = "VEN"' )

is also working...

in win_ole.c

I checked the result of 

  OleGetID( pDisp, hb_itemGetSymbol( hb_stackBaseItem() )->szName, &DispID, 
&bSetFirst )

Wich succeded and correctly set bSetFirst to True.

It is only the assignation wich failed ...

 OleSetProperty( pDisp, DispID, &DispParams )

Regards,

JF

-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Przemyslaw 
Czerpak
Envoyé : lundi 10 novembre 2008 1:12
À : Harbour Project Main Developer List.
Objet : Re: [Harbour] Problem with TOleAuto class

On Sun, 09 Nov 2008, J. Lefebvre wrote:

Hi,

> I have a strange problem with the TOleAuto Class from contrib/hbwin
> I can create an ole automation object without any problem,
> I can Get a propertie, using the automatic Getproperty routing method (by 
> onerror method), so this one is working fine
> cFormula := oReport:RecordSelectionFormula
> But doing this one does not work :
> oReport:RecordSelectionFormula := '{FFAC.CODJOU} = "VEN"'
> (Error 25926100/3  DISP_E_MEMBERNOTFOUND: _RECORDSELECTIONFORMULA)
> Whilst this one is working :
> oReport:Set("RecordSelectionFormula" , '{FFAC.CODJOU} = "VEN"' )
> I checked win_ole.c sources, comparing HB_FUNC( TOLEAUTO_ONERROR ) and
> HB_FUNC( TOLEAUTO_SET )and I did no see any reason for those error.
> Any Idea ?

Messages are in upper case and maybe this is the source of problem.

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour


_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to