From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.0 required=3.0 tests=BAYES_20 autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:ac8:5994:: with SMTP id e20mr35588825qte.75.1641066043196; Sat, 01 Jan 2022 11:40:43 -0800 (PST) X-Received: by 2002:a25:d086:: with SMTP id h128mr37730889ybg.646.1641066043034; Sat, 01 Jan 2022 11:40:43 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 1 Jan 2022 11:40:42 -0800 (PST) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=69.165.217.11; posting-account=cWMYQAoAAADC6Q2Ml1nyYgTWH7MBkx9I NNTP-Posting-Host: 69.165.217.11 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <39e6c150-e377-46a9-8140-fae57b9b2599n@googlegroups.com> Subject: Re: Accessing Addresses in a Passed String From: Pat Van Canada Injection-Date: Sat, 01 Jan 2022 19:40:43 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:63321 List-Id: Hi Dmitry Thanks. So here is what I am playing around with. There is an ncurses Ada b= inding and a binding to a the Forms library but I am trying to do something= a little different. The basic problem is to collect user input and assign characters back to ma= ny string variables in one go.=20 I tried some simple experiments with all of the code in one procedure and e= verything was okay, but I am trying to convert it into a sensible package a= nd the passing of strings is an issue, it is no longer easy to obtain the a= ddress of each character for use later. I want to call a procedure to load each string into an intermediate data st= ructure but I do not want to have to pass them all back to have their value= s to be updated. I figured with the screen co-ordinates and addresses I cou= ld avoid this. I don't really want to start with pointer arithmetic or similar but I also = need the strings to have their values updated without the second batch of p= assing . Thanks-Pat