Skip to main content
Known Participant
Jun 26, 2014 7:09 PM UTC
Answered

Removing unused variables

I have renamed and renumbered variables in my project.  Would like to delete the variables used in the previous numbering system.  I have deleted all advanced actions and shared actions from the project that contain those variables.  Yet, when I click on an old variable, it says, "Deleting variables used by advanced actions, shared actions and text objects is not allowed".  I'm not sure what a text object is, but I think that I only have two text animations and that's all there is that involves text.

When I select an old variable and click on Usage, a box opens that just says, Actions: ''''  and that is all.  What does that mean?

    This topic is closed to new replies. Start a new post to keep the conversation going.
    RodWard
    RodWardCorrect answer
    Community Expert
    Jun 27, 2014 1:01 AM UTC

    Lieve was pointing out that there's currently a bug in Captivate where the Variable Usage is not necessarily a reliable guide.  Sometimes if you delete an Advanced Action that uses a particular Variable, you will find that you cannot thereafter delete the variable, even though technically it appears as if it's not being used anywhere.  Captivate still seems to believe it's in use.  The best practice is to open up the Advanced Action first and remove any references to Variables BEFORE you delete the action...but most people would not think to do that.  So you end up with unlinked variables cluttering up the project file and no way to get rid of them. 

    My guess is that somewhere under the hood in the Captivate CPTX there is still a reference to the Advanced Action that used to be associated with this Variable and the Adobe programmers neglected to remove these references as part of the function that deletes the Advanced Action.

    Either way, until they fix the issue, you won't have a way of getting rid of those supposedly unused variables.

    3 replies

    Lilybiri
    Legend
    Jun 26, 2014 7:54 PM UTC

    If you don't get the message that the variable is not used anywhere, you'll not be able to delete it. Not all usage is recorded in the Usage dialog, same bug as in CP7.0.1: New features in Captivate 7.01 - Captivate blog

    Translate
    Known Participant
    Jun 26, 2014 9:28 PM UTC

    I'm having a bit of trouble with the double (triple?) negative in your first sentence.  Did it say that if I get the message I can't delete the variable?

    A lot of the variables came when copied slides into this project.  I have since gone through and renamed variables and objects on the copied slides.  Do you have any tips for where I can look for usage of the variables?

    Translate
    RodWard
    Community Expert
    RodWardCommunity ExpertCorrect answer
    Community Expert
    Jun 27, 2014 1:01 AM UTC

    Lieve was pointing out that there's currently a bug in Captivate where the Variable Usage is not necessarily a reliable guide.  Sometimes if you delete an Advanced Action that uses a particular Variable, you will find that you cannot thereafter delete the variable, even though technically it appears as if it's not being used anywhere.  Captivate still seems to believe it's in use.  The best practice is to open up the Advanced Action first and remove any references to Variables BEFORE you delete the action...but most people would not think to do that.  So you end up with unlinked variables cluttering up the project file and no way to get rid of them. 

    My guess is that somewhere under the hood in the Captivate CPTX there is still a reference to the Advanced Action that used to be associated with this Variable and the Adobe programmers neglected to remove these references as part of the function that deletes the Advanced Action.

    Either way, until they fix the issue, you won't have a way of getting rid of those supposedly unused variables.

    Translate