Question

This is a quick (and probably stupid) question but if I have two consts string how can I build the next const from the previous const i.e.

Const PATH_SRC = "some path\"
Const PATH_SRC_FILES = PATH_SRC & "files\"

I know you may say a const is a const but looking for a quick solution. This is being performed in a vbs script.

Thanks

Was it helpful?

Solution

If I recall correctly from my VBS days; you can't do that in VBS. A constant can only be set to a literal.

OTHER TIPS

It is possible!

Const PATH_SRC = "some path\"
execute "Const PATH_SRC_FILES =""" & PATH_SRC & "files\" & """"
msgbox PATH_SRC_FILES
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top