photools.com Community

IMatch Discussion Boards => IMatch Scripting and Apps => Topic started by: baardman on December 27, 2017, 07:06:40 PM

Title: How to get rid of the number group seperator in OID
Post by: baardman on December 27, 2017, 07:06:40 PM
I'm trying to convert my script from IMatch5 to IMatch2017.

I generate my website pages from IMatch by selecting a category and run a script which makes smaller sized images, thumbnails and tailored html and css pages. For exporting images I've to call the Imageprocessor. In the filename of the exported file I want to use the OID. I discovered that the Imageprocessor uses the number group seperator in the OID (12.321 instead of 12321). In the scripting environment I get the OID without the number group seperator (which I want!).

I'm probably looking at the wrong places, but I can't figure out what options I have (and in what syntax) to format the OID tag in the Imageprocessor.

So I've two questions:
- what is the proper format syntax for {File:OID|?????} to get something like 12321 instead of 12.321
- where can I find a complete list and syntax description for formatting tag values


Title: Re: How to get rid of the number group seperator in OID
Post by: Mario on December 27, 2017, 07:13:09 PM
Numeric variables by default use the number format configured for the current user in Windows. This includes decimal point/comma, thousands separators etc.

Use {File.OID|cast:int} to get the raw number, without any formatting.

For this and many other examples, plus a full list and explanation of all available formatting functions, see the Variables help topic in the IMatch help.
Just click on Variables in the table of contents tree on the left. To open the help, press <F1> anywhere in IMatch or go to Help menu > Open the Help System.
Title: Re: How to get rid of the number group seperator in OID
Post by: baardman on December 27, 2017, 07:20:34 PM
Thnkx Mario. Hmmmm I've been clicking and searching around in the help file and couldn't the find right info. And apparantly it's just under the topic variables. I've found it now  :o.
Title: Re: How to get rid of the number group seperator in OID
Post by: Mario on December 27, 2017, 07:35:52 PM
Many IMatch features allow you the use of variables. Since this is such a central concept it has its own top-level topic.