Page 1 of 1

Component space

Posted: Thu Oct 27, 2016 2:01 am
by SITL
Dear Francesco Toscano,

Thanks for your advice for my earlier posts, All worked.
Now, I have five components, I want to display the Memory space requirement for the individual component.
When user selects any one, i display description along with space requirement.
From the Project Design => Features , For each feature description i have something like this.....

This feature of $TITLE$ requires $SampleSpace$ KB Space on your disk.

Problem is
At run time, In the components tree screen, SampleSpace variable is not recognized.
the display is This feature of XYZ product requires $SampleSpace$ KB Space on your disk.
So, How do i get the actual value into the components dialog ?
Actually, SampleSpace is a persistent variable and properly initialised, I am also having a message box where the value is displayed properly.

Appreciate your help.
Regards
SITL

Re: Component space

Posted: Thu Oct 27, 2016 2:10 pm
by FrancescoT
Dear STL,

did you use "Get Component Space" command to determine the space requirements of a component previously defined by the Define Component command?

Regards

Re: Component space

Posted: Wed Nov 02, 2016 1:04 am
by SITL
Dear Francesco Toscano,

Thanks & Sorry for late response; festival holidays here in Bangalore.
Yes, I have used "Get Component Space" command.
My previous post says -
SampleSpace is a persistent variable and properly initialised, I am also having a message box where the value is displayed properly.

Seems like it's not even recognizing the SampleSpace variable, I'm sure no spelling mistake.

Appreciate your response.
Regards
SITL

Re: Component space

Posted: Wed Nov 02, 2016 11:29 am
by FrancescoT
Dear SITL,

if your custom variable has been initialized correctly and this also means, that this gets initialized and defined in your script before that your dialog gets displayed, you should not have any problem to visualize its value within the "caption" of a label control (...supposing you used a label control to visualize that description).

At any rate and by the information you shared, I can only suppose that your custom variable (SampleSpace) has not been initialized as required.

This mainly due the fact the the TITLE pre-defined variable, which it seems you used with your description (This feature of $TITLE$...), it gets resolved correctly ("XYZ Product"), while your custom variable doesn't.

Hope this helps you.

Regards