Using variables in FileSet masks

I am trying to generalize a project I initially developed for a client, and part of this process is removing specific project references and replacing them with variables loaded from input boxes. This way the project will work in a variety of situations.

I did fine through all the steps right up until the last one when I replaced a hard-coded file mask in a FileSet with one containing an embedded variable. I went from “\Processed\0104*.xml” to “\Processed\0%OrgID%*.xml” but it won’t pick up any files even though OrgID is = 104.

When I switch back to the erlier syntax it works fine. I even tried mucking around with different permutation of the mask, including embedding the whole thing in a variable and tinkering with the leading zero on 104. What am I missing here?

Hi David,

Thanks for brining this to our attention. It is a bug - variables were not being expanded in pattern masks.

I’ve just checked in a fix which corrects the prolbem. A test build will be available later today (I’ll let you know.)

Thanks Angus, I’ll check back later. Just for interest what timezone do times on the forum reflect, since we are presumably nearly 12 hours apart? It makes a difference to my determination of how recent your post was.

David,

The timezones on the forum should reflect the settings you put in your own personal profile (go to My Profile -> Account Settings.)

We’re in eastern Australia (UTC+10.)

Actually, there seems to be a bug in the forum where you need to set the time zone an hour short to get the correct local time (mine is currently set to UTC+9.) We will see if there’s a fix for this…

I clean forgot to start a test build yesterday afternoon, sorry! I’ve just started one now (9am Thursday morning local time.)

New test build with fileset mask fix:

https://www.finalbuilder.com/downloads/finalbuilder/410/FB410_261.exe

(Sorry again for the delay.)


PS The bug I mentioned with the forum timezone seems to be that the forum software is applying Northern Hemisphere (US?) daylight savings time to everyone, so it may just be something that us Southerners will have to live with. :-).

That works great - thanks for your quick response. I’m off and running now. One last question, is there a runtime-only engine for FB projects, or do they have to run through the full development editor. The client has licensed two copies, but after I develop the projects I would like to be able to deploy them to other team members. A little like the difference between owning a compiler and distributing executables. I couldn’t find any reference in the documentation to one, but maybe I was looking in the wrong places.

Hi David,

There is a runtime only version, it’s called FBCMD. It’s installed in your FinalBuilder directory, but it’s licensing terms are the same as the FB IDE itself.

.t8