PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Multi Line Dash  (Read 1352 times)

Jeffrey Ferreira

  • Diamond Member
  • *****
  • Posts: 175
  • I must have taken a wrong turn at Albuquerque.
    • View Profile
Multi Line Dash
« on: February 21, 2019, 11:22:19 AM »
Hello
 
I have a multi line that contains a description that contains dimensions as follows:

Blue Widget 35-7/8x79-3/8

what happens in the multi-line is that it sees the dash as an allowable place to split up a word
so it will do something like this:
===============
Blue Widget 35-
7/8x79-3/8
===============
if i change the - to anything else it seems to keep it together...
do i have any way around this aside from changing the dash to something else?

jeff


Mike King

  • Diamond Member
  • *****
  • Posts: 3811
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Multi Line Dash
« Reply #1 on: February 21, 2019, 12:07:19 PM »
Word wrapping is done by the OS functions thus the decision as to what it considers viable place to break the line is up to the OS.

You probably can replace the dash with $96$ which I don't think the OS will break on.

However I should mention that the latest PxPlus 2018 which use some newer Windows controls does not do a line break on the dash -- older version of the Windows controls do.

LET ml=10
MULTI_LINE ml,@(10,10,11,10)
LET ml'value$="Blue Widget 35-7/8x79-3/8"

So as mentioned -- its is up to the OS components as to if the break will occur. And to make this more confusing when running in iNomads Chrome does break at the dash but Firefox doesn't.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

Jeffrey Ferreira

  • Diamond Member
  • *****
  • Posts: 175
  • I must have taken a wrong turn at Albuquerque.
    • View Profile
Re: Multi Line Dash
« Reply #2 on: February 21, 2019, 02:01:16 PM »
thanks Mike.
I figured was standard behavior but I just thought I would ask.
jeff