ASP Classico: how to replace the character "indent" with "dash"?

I'm having a problem-when using a component for PDF-I ended up having an error of "Out of Range" when generating the PDF document.

By the error and line I found out where the problem was - and identified that the error was because the user registered a" indent " in the searched field.

When changing the " Traverse "to" dash " - everything returned to normal.

Obviously the error in the component occurs because it does not identify the "cross" as a "table" character" - ja Q it even is not part of the standard keyboard.

In thousands of registrations it was the first time I had this problem-but as it is common for customers to use the trace to separate the information from the field, (and I believe that the problem occurred because the spell checker automatically changed the trace by the crossword) - I wanted a solution to the problem.

This solution is simple..

Just check the data sent in the register and Exchange the crossbar by Dash using the command "REPLACE"

REPLACE(texto, "TRAVESSAO", "TRAÇO")

My doubt is-as I inform the "crossing" in the code-that it does not exist on the keyboard.

Valeu!!

Author: DANIEL, 2017-06-22

1 answers

Indent on Windows AltGr + Num- or Alt + CTRL + Num- or Alt + 0151

Note: Num-is the "minus" key in the numeric keys panel as well as 0151. On my keyboard worked Alt + 0151 look he ai-is greater than the half-stripe-or- (tracinho).

On Mac OS X Alt + hífen

REPLACE(texto, "—", "-")

I've used many replaces in asp like this: REPLACE(texto, chr(151), "-") Dash can be chr(150) or chr (45)

           glifo    Unicode          HTML    TeX         Windows    Mac OS
hífen        -      U+2012 (8210)   nenhum    -        Alt + 0045   
meia-risca   –      U+2013 (8211)   –   --       Alt + 0150   Option + -
travessão    —      U+2014 (8212)   —   ---      Alt + 0151   Shift + Option + -

Some keyboards do not have numeric keypad panel, how to do?

Copy o Dash-and paste it into your code!!

Wikipedia

 2
Author: Leo Caracciolo, 2017-06-23 12:04:30