String disappears

I have the strangest problem. I am trying to extract a file to the server and kept getting an error. When I tried to debug the error with Print statements I noticed that if I have a colon immediately to the right of another character the string disappears. For example

Dim wholepath As String

wholepath = "c:" + doc.CADFileNames(i)

Print wholepath + “
”

Prints a null string

Where as

Dim wholepath As String

wholepath = "c :" + doc.CADFileNames(i)

Print wholepath + “
”

Prints the correct string because of the space after the c, but it does not allow me to extract the file because the path is incorrect.

If anyone has seen anything similar and has a solution, it would be greatly appreciated. This one is driving crazy.

Subject: String disappears

It works fine for me (in Notes 7 Beta 3), so it might be a bug in your current Notes version.

I can’t reproduce the problem, so I can only suggest what you could try:

upgrade to 6.5.3

or

wholepath = "C:" & doc.CADFileNames(i)

or

basepath = "C:"

wholepath = basepath & doc.CADFileNames(i)

or

wholepath = “C” & “:” & "" & doc.CADFileNames(i)

some of those should work.

Subject: RE: String disappears

Well I finally got it to work, but it was very strange.

The code I used was

wholepath = " C:" & doc.CADFileNames(i)

finalpath = Trim(wholepath)

So basically I had to add a space and then take it out. Strange one, but at least it is working.