PDA

View Full Version : Use 'Handle String Operation' on Compiler variables



NewsArchive
03-03-2014, 11:30 AM
Hi all!

I want to change a compiler variable from 2.8.3.1 to 2_8_3_1

Am i Right, that the function, Handle string oprations' do not work on
Compiler variables?

Its really good on runtime variables

Any suggestions?

Best regards

Edvard Korsbæk

NewsArchive
03-03-2014, 11:32 AM
Edvard,

> I want to change a compiler variable from 2.8.3.1 to 2_8_3_1
>
> Am i Right, that the function, Handle string oprations' do not work on
> Compiler variables?
>
> Its really good on runtime variables
>
> Any suggestions?

The "Handle String Operation..." script function is an installer function,
not a compiler directive. A compiler variable is processed at compile time
(when you build the setup.exe) and not at installer runtime.

But you can develop your own tool to handle it:

http://www.lindersoft.com/projects/convertcompilervarvalue.zip

1. Compile the writecompvar.sb8. This will generate a tool to convert a
value in form of "2.8.3.1" to "2_8_3_1"

2. Compile the convertcompilervarvalue.sb8 demo project. It demonstrates
how to convert a compiler variable value from "2.8.3.1" to "2_8_3_1".

Does this help?

Friedrich

NewsArchive
03-04-2014, 04:05 AM
Two examples are better than 1000 words...

Took som seconds to catch the idea, but og cause it will work.

THANKS

Edvard Korsbæk

NewsArchive
03-04-2014, 04:05 AM
> Two examples are better than 1000 words...
>
> Took som seconds to catch the idea, but og cause it will work.
>
> THANKS

:) You are very welcome, Edvard.

Friedrich