views:

40

answers:

2
HeaderStr = HeaderStr & "<link href="""&HB_ManageFolder&"/Include/ASBox/ASBox.css"" rel=""stylesheet"" type=""text/css"">"&vbcrlf

But if I change &HB_ManageFolder& to & HB_ManageFolder & it will work.

Why?

A: 

I don't really know VBScript (which you are probably using with ASP) but as far as I know, it's quite similar to VBA.
And I know this issue from VBA: if you build strings with "&" and you don't leave blanks in between, VBA won't compile until you put the blanks in.

Probably it's the same issue here.
So, you just always have to use " & " instead of "&" and it will work.

haarrrgh
Is it a bug or syntax?
it's a feature!
Arnis L.
+4  A: 

&H starts a hexadecimal number

DmitryK