Can I add a single quotation mark to a comment?

Can I add a single quotation mark to a comment?

InfoGZ52M
Enthusiast Enthusiast
719 Views
3 Replies
Message 1 of 4

Can I add a single quotation mark to a comment?

InfoGZ52M
Enthusiast
Enthusiast

I need to add a single  "  character to the program description to get it to load and display at the control. Everything I've tried so far causes compiling errors. Is this possible?

The line in the header currently looks like this

($%1001/0000Testing1/28)

I need it to look like this -

($%1001/0000"Testing1/28)

 

Line 236 looks like this -

writeln("($%" + oFormat.format(programId) + "/0000" + (programComment) + ")" );

 

I'm currently hand editing to insert it.

0 Likes
Accepted solutions (1)
720 Views
3 Replies
Replies (3)
Message 2 of 4

KrupalVala
Autodesk
Autodesk
Accepted solution

Hi @InfoGZ52M ,

 

I think you are looking for double-quotes.  Use single quotes around the double quote you will get desired output.

 

 writeln("($%" + oFormat.format(programId) + "/0000" + '"'+ (programComment) +  ")" );

 

Thanks,



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
0 Likes
Message 3 of 4

InfoGZ52M
Enthusiast
Enthusiast

It's working. Is the use of single quotes and double quotes documented anywhere? I can't find it in the post processor training guide. I'm having trouble understanding the syntax and order of items in each line, so I'm just trying things and copying from other lines and observing the error messages.

Thank you.

0 Likes
Message 4 of 4

KrupalVala
Autodesk
Autodesk

HI @InfoGZ52M ,

 

In the Post Processor Training Guide, We have given a JavaScript overview(the language of Autodesk post processors), in-depth coverage of the callback functions (onOpen, onSection, onLinear, etc.), and a lot more information useful for working with the Autodesk post processor system.

 

There are many web sites that document the JavaScript language. The ELOQUENT JAVASCRIPT site has a nicely laid out format.

 

Thanks,



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation