- How to call a procedure if do not we need a result?

From: Campbell, Robert D \(SELEX\) \(UK Edinburgh\) <"Campbell,>
Date: Wed, 15 Aug 2007 08:42:52 +0100

----boundary-LibPST-iamunique-202778296_-_-
Content-type: text/plain


Oleg

>> Hello, Wojtek,
>>
>> Thank you for your answer.
>>
>> I'm an old programmer. And I know that we cannot assign a
>> result to a constant :-) But will be good if there was a
>> method to call procedures returning a result, without the
>> use of superfluous variables ....

What I do is

IF WinApi.??? () = 0 THEN END;


Not very elegant, but saves declaring unused variables.

Cheers

Robert

SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy

----boundary-LibPST-iamunique-202778296_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIFxwYXINCk9sZWcgXHBhcg0KXHBhcg0KPj4gSGVs
bG8sIFdvanRlayxccGFyDQo+PiBccGFyDQo+PiBUaGFuayB5b3UgZm9yIHlvdXIgYW5zd2VyLlx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vIGJlIHByaXZpbGVnZWQuIElmIHlvdSBhcmUgbm90IHRoZSBpbnRlbmRlZFxwYXIN
CnJlY2lwaWVudCBwbGVhc2UgZGVsZXRlIGl0IGZyb20geW91ciBzeXN0ZW0gYW5kIG5vdGlmeSB0
aGUgc2VuZGVyLlxwYXINCllvdSBzaG91bGQgbm90IGNvcHkgaXQgb3IgdXNlIGl0IGZvciBhbnkg
cHVycG9zZSBub3IgZGlzY2xvc2Ugb3JccGFyDQpkaXN0cmlidXRlIGl0cyBjb250ZW50cyB0byBh
bnkgb3RoZXIgcGVyc29uLlxwYXINCioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqXHBhcg0KXHBhcg0KLS0tIEJsYWNrQm94
XHBhcg0KLS0tIHNlbmQgc3ViamVjdCBIRUxQIG9yIFVOU1VCU0NSSUJFIHRvIGJsYWNrYm94QG9i
ZXJvbi5jaH19AEZdDQo

----boundary-LibPST-iamunique-202778296_-_---
Received on Wed Aug 15 2007 - 09:42:52 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:31:24 UTC