Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VbNullString equivalent in VFP?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01244386
Message ID:
01244391
Vues:
15
Just wanted to follow up on what I found...

It's cryptic, but when using the "movehere" command, the line of code that prefaces the movehere command is the NEW location and the old location is in parenthesis as one of the parameters of the movehere command.

For example, the code below moves Bill Smith from the Elementary Campuses/Anderson OU to the Students/Disabled OU:
*---- The line below is used just to get a reference to the relative CN of the user we are moving
objUser = GetObject("LDAP://cn=BillSmith,OU=Anderson,OU=ElementaryCampuses,OU=mydomain,OU=local")

***** The line below is referencing the NEW OU that the user is being moved TO
objOU = GETOBJECT("LDAP://OU=Students,OU=Disabled,dc=mydomain,dc=local")

***** The line below is referencing the OLD OU that the user is being moved FROM
objOU.MoveHere("LDAP://cn=BillSmith,OU=Anderson,OU=ElementaryCampuses,OU=mydomain,OU=local", objUser.Name)
Also, I found out that you can substitute the user's relative CN for the vbNullString value in the call to MoveHere.

Obviously it's easy to get all this confused, especially when you are specifying the OLD location in the MoveHere call. I think MoveFrom would be a more appropriate name for it.... lol

Just wanted to pass this along in case anyone else runs into something similar.

Thanks,

Patric



>Try
>NULL
>
>
>>I'm converting some vb scripts to use in VFP.
>>
>>I have a script that requires passing a value of vbNullString. However, according to VB documentation, it's not the same as "" or '' or Chr(0) or 0.
>>
>>Anyone know what I should use in it's place in VFP?
>>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform