VFP7 form - hwnd usage problem  
Author Message
MCSE-5





PostPosted: Mon Aug 11 07:18:58 CDT 2003 Top

Exchange Servers >> VFP7 form - hwnd usage problem

We are using form init code as follows to give each
instance of a form a unique name:

thisform.Name=this.Name+"0"+ALLTRIM(STR(this.HWnd))

This is crashing for some users using NT4 although we
cannot reproduce here on our NT4 machine. The error they
get is Error 1881: Error with S_ORDE - Name : Expression
evaluated to an illegal value.

Has anyone encountered this problem or do you have a
solution?

Thanks.

Bernie

Exchange Server39  
 
 
Rolf





PostPosted: Mon Aug 11 07:18:58 CDT 2003 Top

Exchange Servers >> VFP7 form - hwnd usage problem > We are using form init code as follows to give each
> instance of a form a unique name:
>
> thisform.Name=this.Name+"0"+ALLTRIM(STR(this.HWnd))
>
> This is crashing for some users using NT4 although we
> cannot reproduce here on our NT4 machine. The error they
> get is Error 1881: Error with S_ORDE - Name : Expression
> evaluated to an illegal value.
>
> Has anyone encountered this problem or do you have a
> solution?
>

I do it like this:

Thisform.name = Thisform.name + sys(2015)

Rolf