All--
I am not able to correctly invoke this API from my VB.NET 2005 code. (All my the other API calls I am making leading up to this one are working beautifully.) I am stuck on the function call to
GetLabeledFileToNonWorkingFolder.
I am passing in a VaultClientFile object, the (string) name of my label, the 'label path' (more on that, below) and the path to a directory on my local machine to where I want the files to be downloaded. I keep getting an 'incorrect label' error message from the web service, which is getting me exasperated. The 'label path' I am passing in is the path to the (labeled) project folder in my repository (as far as I know). The documentation of this API is minimal. Please advise.
TIA,
Matt in Queens, NY
GetLabeledFileToNonWorkingFolder woes....
Moderator: SourceGear
-
- Posts: 2
- Joined: Sun Mar 19, 2006 10:42 am
Dear Linda,
Thank you for your prompt reply. I changed the parameters I was passing to ClientInstance.GetLabeledFileToNonWorkingFolder(). My function call now looks like
ci.GetLabeledFileToNonWorkingFolder(cf, strLabel, strSGLabelPath, strSGWorkingDirectory)
where
ci is a ClientInstance object,
cf is a VaultClientFile,
strLabel is the name of my label,
strSGLabel path is a string, set to Nothing (not "") and
strSGWorkingDirectory is a path on my local machine.
As strSGWorkingDirectory is passed in ByRef, I am resetting it prior to each function invocation.
Hope this helps other people in the same predicament,
Matt
Thank you for your prompt reply. I changed the parameters I was passing to ClientInstance.GetLabeledFileToNonWorkingFolder(). My function call now looks like
ci.GetLabeledFileToNonWorkingFolder(cf, strLabel, strSGLabelPath, strSGWorkingDirectory)
where
ci is a ClientInstance object,
cf is a VaultClientFile,
strLabel is the name of my label,
strSGLabel path is a string, set to Nothing (not "") and
strSGWorkingDirectory is a path on my local machine.
As strSGWorkingDirectory is passed in ByRef, I am resetting it prior to each function invocation.
Hope this helps other people in the same predicament,
Matt