Booth Martin wrote on 15/08/2007 14:47:10:
Learning can be so humiliating....
What am I missing? I have an RPGLE program that defines and fills some
fields with values. I have an RPGLE Module that is bound with the main
program at compile time. I wish to use those main-program values in
the module. I expected the values to be there, but debug says they are
not.
As with procedures, to share data between modules, you need to use the
EXPORT keyword in the main module. I think for data items you need to
IMPORT them in the target module. I've never actually done it - I prefer
to pass all data needed by a procedure as variables, but I can see where
IMPORT and EXPORT might make sense.
HTH,
Adam
Attention:
The information contained in this message and or attachments is
intended only for the person or entity to which it is addressed and may contain
confidential and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon, this
information by persons or entities other than the intended recipient is
prohibited. If you received this message in error, please contact the sender and
delete the material from any system and destroy any copies. Thank you for your
time and consideration.
Attention:
Le contenu de ce message et(ou) les fichiers ci-joints s?adressent
exclusivement à la personne ou -entité à laquelle ils sont destinés. Ils peuvent
contenir de l?information confidentielle, protégée et(ou) classifiée. Il est
strictement interdit à toute personne ou entité autre que le(la) destinataire
prévu(e) de ce message d?examiner, de réviser, de retransmettre ou de diffuser
cette information, de prendre une quelconque action en fonction ou sur la base
de celle-ci, ou d?en faire tout autre usage. Si vous avez reçu ce message par
erreur, veuillez communiquer avec l?expéditeur(trice), supprimer ce message et
les fichiers ci-inclus de tout système, et en détruire toutes copies, qu?elles
soient électroniques ou imprimées. Nous vous remercions de votre entière
collaboration.
As an Amazon Associate we earn from qualifying purchases.