Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete an ADO PArameter from the command.
Message
De
19/06/2001 11:31:18
 
 
À
19/06/2001 11:16:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00521065
Message ID:
00521078
Vues:
18
This message has been marked as the solution to the initial question of the thread.
>How do I clear the parameters?
>
>Before I was using
>.commandtext="select * from users where username=?"
>.parameters.refresh
>.parameters(0)=value
>
>However, this does not work on Oracle.
>
>So I tried to use the parameter.add
>But when I come to the second statement the parameter still live in my connection object. I need to clear it. There is no delet method and setting
>the name property doesn't work
>
>
>
>I don't not want to recreate the command object each time...
>
>
>Thanks

You mean they live on the command object. There is a delete method that should work for you:
cmd.Parameters.Delete(0)

HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform