Go Back   MarcomCentral (PTI) and FusionPro User Communities > Support > Issues, Questions, Etc.

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old June 29th, 2022, 06:11 AM
Dmiller35 Dmiller35 is offline
Junior Community Member
 
Join Date: Jun 2020
Location: South Carolina, USA
Posts: 15
Default Storing User-Defined Functions

I've read in the user guide that I can supposedly add a .js file to the Plugins folder so that I can have my most common functions easily available.
However, I've never been able to get it to work. I write the file just as the guide says, but it seems to have an issue with Line 1. Here is what I'm trying to use. Whenever I pull up the building blocks, it tells me "line 1: SyntaxError: illegal character:"


Code:
Presets = new Object;
Presets.LBLNUM =  function (str)
{
	return Int(Field(\“LBLNMBR\”));
}
Presets.LBLNUM.description = “Remove Leading Zeroes from Label Number”
Presets.LBLNUM.syntax = "LBLNUM(<string>)";
I've found in other places that sometimes the user guides have typos or are missing something in order to get the code to work correctly. Is that the case here or does this function just not work?
__________________
FusionPro VDP Creator 12.1.0 | MacOS 10.14.6 | Acrobat DC

Last edited by Dmiller35; June 29th, 2022 at 07:03 AM..
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:18 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.