Convert PMReal taking into consideration the OS string format parameters

Hi all

I ran into a problem where I want the members of this community to a thought.

I have a number in a PMReal and I must appear on a text box in a dialog box created by my plugin. The notation for the decimal character on my machine is set on ',' instead of the usual '.'

This change is carried forward throughout Indesign of the displayed number but the number I have in the PMReal appears with a '.' in it, IE it does not respect the operating system settings.

I used AppendNumber of PMString to convert a used as string 'stringnumeric::ToString' of PMReal, but nothing happens the number is displayed with a '.'.

If someone could guide me in a way wherin I could convert a PMReal to a string representation, which considers the operating system parameters to represent the decimal separator.

Manan Joshi

-Effective InDesign solutions-

MetaDesign Solutions

http://metadesignsolutions.com/services/InDesign-development.php

You can use the ITextValue to a RealEditBoxWidget.

In addition there are some routines in IWidgetUtils, for example FormatUserDecimal().

If the value is a measure, search for IUnitOfMeasure...

Dirk

Tags: InDesign

Similar Questions

  • Hyperlinks lost after converting MS Word file to the PDF/A format (apply the standard PDF/A compliance)

    I need to convert a MS Word document to PDF/a.. I use the Acrobat plugin, with preferences set to ensure compliance with the PDF/A standard (conformity to the PDF/A format is an absolute requirement here). My Word document contains several hyperlinks to pdf documents. When I tried to convert the document to PDF/A format, all hyperlinks to pdf files that I had in my word document have been lost.

    How can I convert my Word document into a PDF/A compliant file AND have deferred hypertext links as well?

    ISO / a identifies that reference external content (aka 'links') are prohibited.

    Mark this process PDF/A has no way to differentiate between 'external' to 'internal' - so, all links go away.

    Anyway, you said that the Word links are a flavor of 'external '.

    PDF/A does not like.

    Be well...

  • The GUID string formatting.

    Dear gurus, I get good help for another problem. I hope to follow the guidelines at the moment.

    In our practice, we face with the GUID. Now, the GUID come in 3 formats (see the other announcement
    GUID in this newsgroup). I have several GUIDS as below

    with mydata as (
    select '77DB966B620D4FEBB9959D016E0BD590' as guid from dual union
    select '159F25C035E845CFA95CFF4F3365B330' from dual union
    select '0485FA87A2FF445E965333B6980EC176' from dual)
    select guid from mydata;
    Now, instead of the expression "select guid of mydata" what I want is to have the
    Select regexp_replace (guid, xxxxxxxxxxxx, yyyyyyyyyyyy, zzzzzzzzzzz) in mydata for the following elements of the result.
    desired result
    
    select regexp_replace(guid, xxxxxxxxxxxx, yyyyyyyyyyyy, zzzzzzzzzzz) from mydata;
    
    77DB966B-620D-4FEB-B995-9D016E0BD590
    159F25C0-35E8-45CF-A95C-FF4F3365B330
    0485FA87-A2FF-445E-965333B6980EC176
    
    and also desired result - difference in expression
    
    {77DB966B-620D-4FEB-B995-9D016E0BD590}
    {159F25C0-35E8-45CF-A95C-FF4F3365B330}
    {0485FA87-A2FF-445E-965333B6980EC176}
    the need is as follows: put the - (hyphen, character) at 8, 12, 16, 20 in the GUID string
    and can also choose Add support cureley end at the beginning end of the string. I'm not very strong
    (continuous learning) regular expressions. If any guru can help, I would be very grateful.
    Jehangir.

    >

    Hi Jehangir,

    Select regexp_replace (guid, xxxxxxxxxxxx, yyyyyyyyyyyy, zzzzzzzzzzz) in mydata for the following elements of the result.

    There are a few good sites for regular expressions.

    http://www.regular-expressions.info/
    www.orafaq.com/Forum - join and search for regexp - a lot of good things. The whole site is awesome.
    http://gskinner.com/RegExr/ - an interesting interactive site
    http://www.adp-GmbH.ch/ora/SQL/re/regexp_replace.html--Le root site is an excellent source of material of the Oracle.
    http://www.adp-GmbH.ch/ora/SQL/replace.html
    http://www.adp-GmbH.ch/blog/2005/may/11.html
    http://www.Oracle-Developer.NET/display.php?id=508 - oracle-developer is an excellent site for those who the Oracle.
    http://www.Oracle-base.com

    Google 'Oracle' recipes for "ready-made" Regexes - study them and learn.

    I found this book [url http://www.amazon.com/Mastering-Regular-Expressions-ebook/dp/B007I8S1X0/ref=sr_1_3?ie=UTF8&qid=1342461674&sr=8-3&keywords=regular+expression] to be very well written - have not had time to study it
    as much as I wanted.

    HTH,

    Paul...

    Jehangir.

  • Problem with convert to PDF from Excel without taking into account the layout and graphics/graphics

    I work with Excel files with graphics (clipart) and charts from the data on the worksheet. I use Excel 2007 and everything a year ago and a half downloaded the option "convert to PDF" on the Microsoft website. It has been working beautifully. In Excel, I've got a) set print area b) go to "adjust to a page" print preview can convert to PDF format and everything on the PDF page looked like exactly as it did in Excel print preview. It worked flawlessly...

    UNTIL...

    .. .the most recent "upgrades" have been installed. Now the menu reads, "Save as PDF or XPS" option and the PDF is a mess. Excel text comes out OK, but any graph or Excel charts will not resize itself, and are completely out of the page. For example, a chart that is supposed to be in the lower right corner must be resized in Excel, placed in the center of the worksheet, on the text and using this approach, resize, save a PDF routine about 50 times, and you can finally wrong PDF resembling the Excel worksheet. Of course, the Excel spreadsheet is totally messed up because you have to move the chart in the spreadsheet and it's a mess, not to mention a waste of time.

    I uninstalled the Converter Microsoft PDF and XPS, and then downloaded and installed the PDF Converter (alone). No luck. It's always a mess. My business is at a standstill until I get this sorted. Help, please!

    KFG

    There is a fix for this.  It is described in a strange article entitled ' Description of the fix Excel 2007 package (Excel-x - none.msp, Graph-x - none.msp, Xlview-x - none.msp): August 25, 2009 "located here: http://support.microsoft.com/kb/973402/

    Before installing, my PDF and XPS exporting from Excel had too much size images.  Now exports are correct, just like before the Service Pack.

    Unlike article, my patch was dated 13/10/2009, rather than 19/08/2009.

    See you soon!
    BillVo

  • Convert a Boolean trigger in the text string

    Hello

    I would like to know if it is possible to convert some text buttons in a single variable text string.

    Let me try to explain:

    I have 3 buttons: Simulation, send, Quit

    Now, I want to use a case structure, in which it is possible to switch between these 3 options.

    So if you press the button for a second, I would have a string of text with the text: send.

    If I press Quit, having to turn into Quit, text string even if I can connect this string to the structure of the case.

    Is this possible? It sounds easy, but I can't figure out how do it in a simple way.

    How I did it: Boolean convert (0.1), these values multiplied by a number,

    for example (1,2,3), but to make a deal with (1,2,3) structure and write the right text in a text string.

    But I think it can be done much easier, isn't it?

    Thank you!

    Hello

    Check the attached VI. I think this should help you. The mechanical action of the buttons are "switch until released. You can change it according to your requirement.

    The second example uses the Structure of the event.

    Kind regards
    Nitz

    (Bravo to give good answers, mark it as a solution if your problem is resolved)

  • Smart playlist without taking into account the time of power

    For many of my songs, I put options in iTunes to start at some point (start for example, eliminated song a movie after the composers finished introduce), or stop at some point (for example, end "A Day in the Life" until the inner Groove goes off).  However, when I listen to them on my iPhone, via the list of each song, I said I love you, they begin to run and play all the way to the end.  Only when I listen to the song in a different playlist, or ask Siri Shuffle it for me, these options work as it should.  Does anyone else have this problem?  My solution would not work when I want to take the first song myself at the time.

    I also have this problem and it's really annoying! I'm on an iPhone iOS running 7 10.

    It occurs in every playlist I have regardless of whether it was a smart playlist or the normal playlist I made.

    Another thing that my phone has done is when the playlist rolls that some songs will be start of subject to halfway through the song. I don't know if it's because he plays from the point at which I jumped the song the day before. I manually checked every song in my iTunes library to make sure that the box saying "remember playback position" only is unchecked (took me a while). Each box is unchecked. Ugh. I hope it's a little bug iPhone will fix as soon as possible.

  • Why is relativeInitalX value not taking into account the triggering delay? using scope OR with the PXI-5124

    Hi all

    play with a digitizer PXI-5124 in a case of PXI1042Q with a PXI8110 controller that runs labview 2012 (latest updates) with the latest version of the driver NIScope.

    I put in place an acquisition of off-delay (by assigning the triggering delay, for example 20us) which works very well (I can tell by the signal I get delay control works correctly), but the data returned in the info wfm cluster (using the 2D version of niScope I16 Fetch) does not have this delay.

    Description of the relativeInitialX within this cluster indicator indicates "is the time in seconds between the trigger and the first sample in the acquired waveform" but its never to return something around 1E-9 independent of trigger delay. Surely the relative initial x should reflect the triggering delay?

    I'm doing something wrong?

    Thanks for your help!

    So, I made a screenshot of the image in the section "Trigger Delay" link I sent you.

    Meaning of the symbol:

    T0 = original moment of relaxation

    T1 = time to trigger used in the acquired record (t1 = t0 + TriggerDelay)

    T2 = time of first sample in the record of the acquis.

    RX = relativeInitialX = t1 - t2

    Response to previous reviews

    «I understand what you're saying - so basically, if I want to know the delay of my trigger for the first sample in the record, I just add my delay time value to the relativeInitialX.»

    • Close, the delay of the original trigger (t0), for the first sample in the record (t2), would actually be TriggerDelay-relativeInitialX

    «.. . Nowhere does graphically describe where is the relative value of initialX real. »

    • Right, relativeInitialX is not a timestamp, so it is not a place on the timeline, it is the difference between two timestamps (t1 and t2 above), where the relativeInitialX name.

     

    "The trigger"record"is the straight line in the Middle, so expect relative to - 1/2 initialX record length?

    • Almost correct, because the reference trigger is relativeInitialX to the position of 50%, will be the time in seconds for 1/2 the record length. (i.e. If the registration has been long relativeInitialX, 2s = 1 s).  RelativeInitialX will always be the delta time between the trigger (t1) and the first sample returned in the record (t2).

    • For example using the picture above: If t0 is 10 sec, Trigger Delay = 3 sec, SampleRate = 1 kHz, = 1000 record size.  This means that t1 = 13 s.  Our record is long of 1s (1000 points to 1 DC between each = 1 s), if t2 = 12.5 sec.  If away from all these moments are absolute time, as the timestamps.  So relativeInitialX = t1 - t2 is 13-12, 5 = 0.5 sec.

    • As a side note, the reference position should not be 50%, you can configure to between 0-100%.

    Time not yet discussed record attributes

    I don't want to make you more confused, but there is another useful attribute in the waveform info that we've not yet discussed and its AbsoluteInitialX.  Starting from the NOR-SCOPE help file:"absoluteInitialX is the timestamp of the first sample of recoveries in seconds..." "So, using the above image, absoluteInitialX = t2.

    I hope this helps.  If a part is still not clear, let me know.

    -Nathan

  • programs not responding, freezing, office does not properly taking into account the temporary office.

    When I start my computer, I get the Welcome screen and then my office takes over thereafter, is not loaded correctly, and I get temporary.  I have to restart. Virtually every day, windows mail opens then freezes, I get a program does not almost any time.    I do analysis antivirus regularly, clean and defragment.    can someone please tell me what to do with it.

    Read the info below:http://support.microsoft.com/kb/947242

    A temporary profile is loaded after you connect to a Windows Vista-based system

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://windowshelp.Microsoft.com/Windows/en-AU/help/769495bf-035C-4764-A538-c9b05c22001e1033.mspx

    Difficulty of a corrupted user profile

    After creating the profile, you can copy the files from the existing profile. You must have at least three user accounts on the computer to perform these operations, including the new account that you created.

    See you soon.

    Mick Murphy - Microsoft partner

  • Windows 7 without taking into account the power settings

    I have a dell xps 15z running under Windows 7 64-bit, and it was just openly ignoring my power settings.  The display turns off after 5 minutes, it never sleeps, nothing.  It will stay just the way it is left until it runs the battery down.  What can I do to fix this?

    Hi soveryconfused,

    Follow these methods.

    Method 1: Run the troubleshooter of power.

    http://Windows.Microsoft.com/en-us/Windows7/open-the-power-Troubleshooter

    Method 2: Follow the steps in the article.

    http://Windows.Microsoft.com/en-us/Windows7/solutions-to-common-power-problems

    Method 3: Perform a clean boot to see if there is a conflict of software like the clean boot helps eliminate software conflicts.

    Note: After the boot minimum troubleshooting steps, follow step 7 in the link to return the computer to a Normal startupmode.

  • VCP550 - last date available for taking into consideration

    Hi all!

    Does anyone have information on the latest date available for review VCP550? Unfortunately, I have not found any information on this subject.

    Thank you!

    This is not true - there is no retreat day together for VCP550-see here: VCA and VCP retirements coming up in September, November - education and Certification Blog - Blogs of VMware VMware

  • Browsers without taking into account the fixed font size, developing container

    I have a layout and in the right column I have a block of text aligned to justify this block when displayed in different browsers does not maintain the size of the font 11px but changes and changes differently in different browsers.  I tried to specify the size in divs which could affect it does not seem to do much, ideas on how to limit it to the specified size?

    Thank you

    Not sure that I understand very well your question, but maybe this will help you:

    http://ALT-Web.com/demos/font-sizes.shtml

    If what you want is your

    text in div #foo be 11px, try this in your CSS:

    p #foo {do-size: 11px}

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    www.Alt-Web.com/
    www.Twitter.com/ALTWEB

  • Convert Windows reg file to the Thinapp project format

    Is there a utility to do this?

    Yes, such utility convert registry was created by FarCry3r seven years ago, but still works OK with some limitations. Binary data often looks like this:

    [HKEY_CURRENT_USER\Software\Your program]

    "Data" = hex: ff, ff, ff, 00, ff, ff, ff, 00, ff, ff, ff, 00, ff, ff, ff, 00, ff, ff, ff, 00,------.

    FF, ff, ff, 00, ff, ff, ff, 00, ff, ff, ff, 00, ff, ff, ff, 00, ff, ff, ff, 00, ff, ff, ff, ff, 00,------.

    FF, ff, 00, ff, ff, ff, 00, ff, ff, ff, 00, ff, ff, ff, 00, ff, ff, ff, 00

    For good convertion of registry ThinApp format, you must open regfile in any text editor and replace all the "------" like this:

    [HKEY_CURRENT_USER\Software\Your program]

    "Data" = hex: ff, ff, ff, 00, ff, ff, ff, 00, ff, ff, ff, 00, ff, ff, ff, 00, ff, ff, ff, 00, ff, ff, ff, 00, ff, ff, ff, 00, ff, ff, ff, 00, ff, ff, ff, 00, ff, ff, ff, 00, ff, ff, ff, 00, ff, ff, ff, 00, ff, ff, ff, 00, ff, ff, ff, 00, ff, ff, ff 00, ff, ff, ff, 00

  • Not convert my PDF files to the correct XML format

    Why are the PDF files do not correctly convert to XML?

    I got it work fine before and now it will not

    Hi richardv26868899,

    Player 11 no more supports services to export in PDF format, you need to install the latest Adobe Acrobat Reader Acrobat Reader DC Learn & Support DC to use the service to export it to PDF help of Acrobat Reader | Export PDF to Acrobat Reader DC.

    Alternatively, you can use this service online at https://cloud.acrobat.com/exportpdf

    Kind regards

    Nicos

  • How to use REGEXP to exactly the corresponding strings?

    Version: Oracle enterprise edition 10G

    Hello developers,

    I'm trying to stripe some of the words in the url that I already know and have no importance.
    Here is the piece of code that I tried.
    SELECT REGEXP_REPLACE( '-THE-WORLD-IS-NOT-ENOUGH-FOR-ME-','[-FOR-|-THE-|-NOT-]','RPLCD') FROM DUAL
    I did that to replace - THE-, - for - and - NOT-in the url of the form. But it does not supersede the right word and replaces all the letters that are being matched. I know that I use a bad model to this feature.

    Can someone help me to form a model that replaces the entire word we give or one similar to it? and without taking into account the case too

    Thank you
    RAM

    You want between parentheses, square brackets:

    SQL> ed
    Wrote file afiedt.buf
    
      1* SELECT REGEXP_REPLACE( '-THE-WORLD-IS-NOT-ENOUGH-FOR-ME-','(-FOR-|-THE-|-NOT-)','RPLCD') FROM DUAL
      2  /
    
    REGEXP_REPLACE('-THE-WORLD-IS-NO
    --------------------------------
    RPLCDWORLD-ISRPLCDENOUGHRPLCDME-
    
    SQL>
    

    square brackets indicate a set of characters, whole words.

  • How to convert the Ascii string containing hex to hex string info?

    Dear all,

    I am busy doing a control/reading program for pumps of ISCO.

    Right now I'm in trouble with to send orders for PUMPS in HEXADECIMAL. When I use a CONTROL to the STRING in HEX display, everything works fine (when I manually write down the command in the control of the chain).

    Exist it a couple of pieces order: string Destination, length, ordering, Checksum. I'm doing a sup - screw that automatically calculates the checksum (modulo 256) and adds it to the string. Everything is going well: first of all, I shared the ascii bytes command and I calculate the checksum and add as ASCII HEXADECIMAL value to the chain of command. Also a CR (= 0d) is added. Now the whole string must be converted to hex. The string contains the right nummers HEX, but they are in ASCII format. Here was I feel worth it, I don't know how to do it!

    So to summarize:

    I have an ascii string that contains the values HEX (for example 315230303652454D4F544531420D) and it must be converted to a HEX string (for instance 3152 3030 3652 454 4531 420 4F54) for the pump of the ISCO can understand the command.

    The VI is attached.

    Thank you in advance,

    Bio

    Bio,.

    This should do what you want.

Maybe you are looking for