Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADSI
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Re: ADSI
Miscellaneous
Thread ID:
00553928
Message ID:
00554598
Views:
11
>How do you translate the following line to VFP with the BitOr() function?
>*!* usr.Put "userFlags", usr.Get("UserFlags") Or UF_DONT_EXPIRE_PASSWD
>
>I tried parsing it like this:
>usr.Put(["'userFlags', usr.Get('UserFlags')" BITOR(UF_DONT_EXPIRE_PASSWD)])
>
>I got an error Invalid number of parameters.
>
>Thanks,

I'd break it out this way
lnvalue = BITOR(usr.Get("UserFlags"), UF_DONT_EXPIRE_PASSWD)
usr.Put("userFlags", lnvalue)
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform