From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d356566c971f9921 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.8.135 with SMTP id r7mr50382870pba.8.1317445589556; Fri, 30 Sep 2011 22:06:29 -0700 (PDT) Path: lh7ni8797pbb.0!nntp.google.com!news1.google.com!goblin2!goblin1!goblin.stu.neva.ru!news.tornevall.net!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: How to use a function in a procedure call? Date: Fri, 30 Sep 2011 22:06:21 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <604bf6ae-4050-4d03-be4a-aab907d42162@j10g2000vbb.googlegroups.com> <8d11e0b0-0f96-444f-a428-52c7f098a11d@q25g2000vbx.googlegroups.com> NNTP-Posting-Host: 4fd1a334d897b0854151cef6c3939683 Mime-Version: 1.0 X-Trace: ba1fe866f4eeb005bfbe95eb0ae654db X-Complaints-To: abuse@tornevall.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110922 Thunderbird/3.1.15 X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: <8d11e0b0-0f96-444f-a428-52c7f098a11d@q25g2000vbx.googlegroups.com> X-UserIDNumber: 1738 X-Validate-Post: http://news.tornevall.net/validate.php?trace=ba1fe866f4eeb005bfbe95eb0ae654db X-Complaints-Italiano: Non abbiamo padronanza della lingua italiana - se mandate una email scrivete solo in Inglese, grazie X-Posting-User: 0243687135df8c4b260dd4a9a93c79bd Xref: news1.google.com comp.lang.ada:18256 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2011-09-30T22:06:21-07:00 List-Id: On 09/30/2011 08:53 PM, Sunny wrote: >> > Thanks for your reply. Could you indicate a specified way to solve the > problem? Such as how to store-it in a variable, pass it to another > subprogram, or use it in an expression? I think you've already seen an example of using it in an expression in an earlier post, something like if Set_Icon_From_File (Win, "icon.jpg") then null; end if; If we can safely presume from this that it returns Boolean, then you could declare a Boolean variable V : Boolean; and store the result of the function call in it by means of an assignment. -- Jeff Carter "I would never want to belong to any club that would have someone like me for a member." Annie Hall 41