AVEVA Community
AVEVA Community
  • Site
  • User
  • Site
  • Search
  • User
Modules
  • AVEVA World
  • PDMS/E3D Forum
  • Modules
  • Cancel
Modules
Draft Module Text problem
  • Forums
  • Resources
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Replies 22 replies
  • Subscribers 5 subscribers
  • Views 60 views
  • Users 0 members are here
Options
  • Share
  • More
  • Cancel
Related

Text problem

standy
standy over 10 years ago
 
  • Sign in to reply
  • Cancel
  • Han_BFY
    Han_BFY over 10 years ago
    As norm.. alert just information with few text.
    but I also hope answer from others..  if default alert can make that happen.

    cheers!!
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • standy
    standy over 10 years ago
    [QUOTE=Han_BFY;95852]As norm.. alert just information with few text.
    but I also hope answer from others..  if default alert can make that happen.

    cheers!!
    Yes, thank you anyway. waiting for answer.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Shrivallabha Sharad Redij
    Shrivallabha Sharad Redij over 10 years ago
    You may want to try:
    !!alert.message('This is what I want to print
    Something on second line
    And some more on third line!')
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Han_BFY
    Han_BFY over 10 years ago
    [QUOTE=Shrivallabha;96386]You may want to try:
    !!alert.message('This is what I want to print
    Something on second line
    And some more on third line!')


    Thanks Shrivallabha.. that is what we looking for.. very helpful
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Han_BFY
    Han_BFY over 10 years ago
    looks so easy but .. never thought that.. :-)
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • standy
    standy over 10 years ago
    [QUOTE=Shrivallabha;96386]You may want to try:
    !!alert.message('This is what I want to print
    Something on second line
    And some more on third line!')


    Hi Shrivallabha,

    Thank you very much!! That is what I really want.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Mohammad Reza Sabzevariha
    Mohammad Reza Sabzevariha over 10 years ago
    Simply go to next line, PML is EZ :)
    Anyway, I saw it is already responded. Cheers
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Reddeppa
    Reddeppa over 9 years ago
    can we capture/store  the ' (single quote) in string?
    Example
    !s = 'AAA' & ''' & 'BBB'  & '''
    $!s  

    this should print  AAA'BBB'

    regards,
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Pedro Valadares
    Pedro Valadares over 9 years ago
    [QUOTE=Goals;99498]can we capture/store  the ' (single quote) in string?
    Example
    !s = 'AAA' & ''' & 'BBB'  & '''
    $!s  

    this should print  AAA'BBB'

    regards,

    Yes, you can use the following method:


    !s = 'AAA' & |'| & 'BBB' & |'|


    or just


    !s = |AAA'BBB'|


    Then query the resulting string with

    q var !s


    instead of


    $!s
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Reddeppa
    Reddeppa over 9 years ago
    Thanks Dude.

    However the string I have to use in between the command line statement in PML. where we could only use $!s, Q var !s is not allowed as mentioned below . please advice.
    !s = |'c:\temp\test.txt'|

    OutputFile $!s

    Result should print/execute  in command line
    OutputFile 'c:\temptest.txt'

    regards,
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
<>