Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADSI
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Re: ADSI
Divers
Thread ID:
00553928
Message ID:
00554598
Vues:
12
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform