Rocket Uniface Support Resources

 View Only
  Thread closed by the administrator, not accepting new replies.
  • 1.  Get struc value/leaf in a string

    PARTNER
    Posted 06-02-2023 08:42
    Edited by Daniel Iseli 06-05-2023 07:17
    No replies, thread closed.

    Note from Administrator: please post your questions in the Uniface User Forum. The Rocket Uniface Support Resources sub-forum is intended for posts from the Rocket Uniface product and support teams.

    Hi all,

    Can't find the information in the doc. Does anyone know how to get a struct value/leaf in a string ?

    Something like "%%myStruct->example" (this returns the "-> example" string). Instead of using a temp string to put the value in it.

    Thanks



    ------------------------------
    Jean-marc Salis
    Mp Services
    Montauban Cedex FR
    ------------------------------



  • 2.  RE: Get struc value/leaf in a string

    Posted 06-03-2023 07:57
    No replies, thread closed.
    Ciao Jean-Marc,

    I had the issue before: I've built a Uniface global function to do that.

    Regards,
    Gianni


    Il 02/06/23 14:42, Jean-marc Salis via Rocket Forum ha scritto:
    > Hi all, Can't find the information in the doc. Does anyone know how to
    > get a struct value/leaf in a string ? Something like "%%myStruct...
    > Invite your colleagues to join the Rocket Forum and grow our expert
    > network.
    > ------------------------------------------------------------------------
    > Rocket Software <https: community.rocketsoftware.com="">
    >
    >
    > Rocket Uniface Support Resources
    > <https: community.rocketsoftware.com/forums/forum-home/digestviewer?communitykey="0724ff83-8c82-46c2-866c-d79332b07671">
    >
    >
    > Post New Message Online
    > <http: community.rocketsoftware.com/participate/postmessage?groupid="235">
    > Invite your colleagues to join the Rocket Forum and grow our expert
    > network. Share this link. <https: community.rocketsoftware.com/register="">
    >
    > Get struc value/leaf in a string
    > <https: community.rocketsoftware.com/discussion/get-struc-valueleaf-in-a-string#bmffd4353b-cb13-424e-a981-b6b150ccfadd="">
    >
    > Reply to Group Online
    > <https: community.rocketsoftware.com/forums/all-discussions/postreply?messagekey="ffd4353b-cb13-424e-a981-b6b150ccfadd&ListKey=8218cca4-2629-42b8-adf2-095322c17f0e">
    > Reply to Group
    > <mailto:rocket_rocketunifacesupportforum_ffd4353b-cb13-424e-a981-b6b150ccfadd@connectedcommunity.org?subject=re:></mailto:rocket_rocketunifacesupportforum_ffd4353b-cb13-424e-a981-b6b150ccfadd@connectedcommunity.org?subject=re:>
    > Get struc value/leaf in a string>
    >
    > Jean-marc Salis
    > <https: community.rocketsoftware.com/network/members/profile?userkey="4775b6fc-7e05-4b88-8b53-6cb9cc2314bc">
    >
    > Jun 2, 2023 8:42 AM
    > Jean-marc Salis
    > <https: community.rocketsoftware.com/network/members/profile?userkey="4775b6fc-7e05-4b88-8b53-6cb9cc2314bc">
    >
    >
    > Hi all,
    >
    > Can't find the information in the doc. Does anyone know how to get a
    > struct value/leaf in a string ?
    >
    > Something like "%%myStruct->example" (this returns the "-> example"
    > string). Instead of using a temp string to put the value in it.
    >
    > Thanks
    >
    >
    >
    > ------------------------------
    > Jean-marc Salis
    > Mp Services
    > Montauban Cedex FR
    > ------------------------------
    >
    > *Reply to Group Online
    > <https: community.rocketsoftware.com/forums/all-discussions/postreply?messagekey="ffd4353b-cb13-424e-a981-b6b150ccfadd&ListKey=8218cca4-2629-42b8-adf2-095322c17f0e">*
    > *View Thread
    > <https: community.rocketsoftware.com/discussion/get-struc-valueleaf-in-a-string#bmffd4353b-cb13-424e-a981-b6b150ccfadd="">*
    > *Forward
    > <https: community.rocketsoftware.com/forums/all-discussions/forwardmessages?messagekey="ffd4353b-cb13-424e-a981-b6b150ccfadd&ListKey=8218cca4-2629-42b8-adf2-095322c17f0e">*
    > *Flag as Inappropriate
    > <https: community.rocketsoftware.com/discussion/get-struc-valueleaf-in-a-string?markappropriate="ffd4353b-cb13-424e-a981-b6b150ccfadd#bmffd4353b-cb13-424e-a981-b6b150ccfadd">*
    > *Post New Message Online
    > <http: community.rocketsoftware.com/participate/postmessage?groupid="235">*
    >
    >
    >
    >
    >
    > You are subscribed to "Rocket Uniface Support Resources" as
    > gianni.sandigliano@unifacesolutions.com. To change your subscriptions,
    > go to My Subscriptions
    > <https: community.rocketsoftware.com/preferences?section="Subscriptions">.
    > To unsubscribe from this community discussion, go to Unsubscribe
    > <https: community.rocketsoftware.com/higherlogic/egroups/unsubscribe.aspx?userkey="261472fc-88bc-4796-8265-4b2b9150c9ba&sKey=KeyRemoved&GroupKey=8218cca4-2629-42b8-adf2-095322c17f0e">.
    >
    >
    --



    PillarOfWisdom1:
    Work like you do not need money
    Sing like you are alone in bath
    Dance like no one is seeing you
    Love like you've never been hurt
    Live like paradise is on the earth
    and...
    Don't worry about the world coming to an end today.
    It's already tomorrow in Australia!

    PillarOfWisdom2:
    Love without depending
    Live without pretending
    Spank without offending
    Listen without defending

    Gianni Sandigliano
    Via Matteotti, 102
    13040 Borgo d'Ale (VC) - Italia
    Tel: +39-0161-468114
    Mobile: +39-348-4426880
    Skype: sandigliano.gianni
    EMail:mailto:gianni.sandigliano@unifacesolutions.com
    Web:http://www.unifacesolutions.com

    ===
    Ai sensi del Regolamento UE n.679/2016 (General Data Protection Regulation - GDPR) le informazioni contenute in questa email o nei suoi allegati devono ritenersi confidenziali ed intese per il solo destinatario/i. La lettura, copia, distribuzione o genericamente l'utilizzo da parte di chiunque altro è da considerarsi NON autorizzato. Se non si è tra i destinatari, cancellare questo messaggio, inclusi gli allegati, ed avvisare il mittente rispondendo all'indirizzo sopra riportato mediante email.
    ===
    According to Europen Reg. nr.679/2016 GDPR (General Data Protection Regulation) informations in this e-mail and any attachments are confidential and are intended for the addressee(s) only. Reading, copying, disclosure or use by anybody else is unauthorized. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail.
    ===




  • 3.  RE: Get struc value/leaf in a string

    Posted 06-05-2023 07:16
    No replies, thread closed.

    Hi,

    You have to put it in parentheses.

    field_var = "%%(myStruct->example)"



    ------------------------------
    Juliano Anoar Haoach Garcia
    Suport Analyst
    Coamo -Coop. Agropecuaria Mouraoense
    Campo Mourão BR
    ------------------------------