Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Variable expansion into script plugin
LETARTARE:
I use 'C::B r7809'
1- I load a workspace named 'Normal' which becomes the current workspace
'Normal' is displayed in the tab Projects of the Management panel
2 - I load this script in the console to retrieve the name of the workspace
--- Code: ---function nameWS() {
/// name *.workspace
local nameWS = ReplaceMacros(_T("$(WORKSPACE_NAME)") ) + ::DOT_EXT_WORKSPACE;
local filenameWS = ReplaceMacros(_T("$(WORKSPACE_FILENAME)") );
::print(nameWS)
::print(filenameWS)
}
--- End code ---
3- I run the script by typing by hand: : 'nameWS()'
4- I get the following results:
--- Quote ---Normal.workspace
default.workspace
--- End quote ---
according to http://wiki.codeblocks.org/index.php?title=Variable_expansion#Code::Blocks_workspace
I should have:
--- Quote ---Normal.workspace
Normal.workspace
--- End quote ---
Is this correct or a mistake?
oBFusCATed:
Works correctly here (debugger branch r7780, Cenos 5.6)
LETARTARE:
Thank you very much.
What configuration?
I don't know Cenos.
oBFusCATed:
Centos, sorry for the typo.
LETARTARE:
I like to have the opinion of someone who uses Vista because it is several times that I see any problems using the plugin scripts.
@ oBfuscated
thank you, but I did not know too!
Navigation
[0] Message Index
[#] Next page
Go to full version