PDA

View Full Version : stringstream and folder names


holycause
06-04-2010, 05:48 PM
hi guys,

I have a question about the strings literals.

When I'm using a stringstream, and the folder name starts with n, r or t it doesn't work.

imgNum += 1
locImg = locDir + matLibTemp[imgNum].name
str = "" as stringstream
format "(
seaSurfcustToolsRollout.btnMat0%.images = #(\"%.jpg\", undefined, 1, 1, 1, 1, 1)
)" i locImg to: str
execute (str as string)


how could I fix it?

JHaywood
06-04-2010, 07:31 PM
Try this:

format "(
seaSurfcustToolsRollout.btnMat0%.images = #(@\"%.jpg\", undefined, 1, 1, 1, 1, 1)
)" i locImg to: str

holycause
06-04-2010, 07:45 PM
thanks man.
works fine :)

CGTalk Moderation
06-04-2010, 07:45 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.