Appending to variable changes %s

I need to put some percent signs into a variable, which will be html text and contain some URls. I’m building the html one table cell at a time, using the Append to Variable action. I can create a % by using %% with no problem. But the next time I append to the variable, the existing text of the variable appears to undergo variable substitution, wiping out my %'s and everything between them.

This is the text with the %s before appending:

3
And this is what it looks like afterwards:
3


The ‘1%7C2%7C4’ was converted to ‘17C4’. It looks like it thought that %7C2% was a variable and tried to replace it. But I don’t think appending to a variable should modify the pre-existing content. Besides, I don’t have a %7C2% variable, so it should have given an error if this is expected behavior.

I know about using the %!variable% syntax to avoid this sort of thing in other situations, but the Append to Variable action has me pick the variable from a list, so I can’t insert a ‘!’.

Any suggestions?

Thanks,

    Keith Hearn
    Devicescape, Inc.

You know, it’s fascinating the way this forum corrupts the stuff I put into it. This time it even reordered the lines. I guess that’s what I get for putting html in my message. Here is another try with all angle brackets removed. At least it seems to be leaving my percent signs alone.


I need to put some percent signs into a variable, which will be html text and contain some URls. I’m building the html one table cell at a time, using the Append to Variable action. I can create a % by using %% with no problem. But the next time I append to the variable, the existing text of the variable appears to undergo variable substitution, wiping out my %'s and everything between them.

This is the text with the %s before appending:

TD bgcolor="#FFFF00" align=“center"A   href=“http://katmandu.corp.devicescape.com:5467/cov.cgi?c=AAAAAADA7g&lstate=1|2|4&q=6&runs=1311&t=6&v=1”>3/A/TD

And this is what it looks like afterwards:

TD bgcolor=”#FFFF00" align="center"A href=“http://katmandu.corp.devicescape.com:5467/cov.cgi?c=AAAAAADA7g&lstate=17C4&q=6&runs=1311&t=6&v=1”>3/A/TD
/TR

The ‘1%7C2%7C4’ was converted to ‘17C4’. It looks like it thought that %7C2% was a variable and tried to replace it. But I don’t think appending to a variable should modify the pre-existing content. Besides, I don’t have a %7C2% variable, so it should have given an error if this is expected behavior.

I know about using the %!variable% syntax to avoid this sort of thing in other situations, but the Append to Variable action has me pick the variable from a list, so I can’t insert a ‘!’.

Any suggestions?

Thanks,

    Keith Hearn
    Devicescape, Inc.

Hi Keith,

This is a bug in the way “Append to Variable” is implemented. I’ve fixed it so that it doesn’t expand the parent variable any more (we’ll have a test build available shortly, I’ll let you know.)

Regards,

Angus

Thanks, I figured you guys would get it fixed quickly. You’ve been pretty good at that in the past. :slight_smile:

Keith

Any update on this? I'm unable to work around. I can't just put enough %s in to escape them, because I'm doing the append in an action list that gets called several times, so I'd need a different number of %s each time though. Any word on when a new build will be available?

Thanks,

  Keith

Hi Keith,

Sorry, I forgot to let you know that the test build was out. The fix should be in this download:

https://www.finalbuilder.com/downloads/finalbuilder/550/FB550_251.exe

- Angus

Ok, I'll give it a try.

Thanks,

  Keith