# Natural call VB COM object

**URL:** <https://techcommunity.softwareag.com/t/natural-call-vb-com-object/60389>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Remote-Procedure-Call-RPC\
**Created:** [December 16, 2005, 6:14am UTC](https://techcommunity.softwareag.com/t/natural-call-vb-com-object/60389 "2005-12-16T06:14:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hung\_Thiet\_Nguyen](https://avatars.discourse-cdn.com/v4/letter/h/cdc98d/32.png) [@Hung\_Thiet\_Nguyen](https://techcommunity.softwareag.com/u/Hung_Thiet_Nguyen)\
**Post date:** [December 16, 2005, 6:14am UTC](https://techcommunity.softwareag.com/t/natural-call-vb-com-object/60389/1 "2005-12-16T06:14:36Z")

</div>

Is this possible to call a method from a handle of object variable which has the object value returned from calling a method of another VB COM object ?

---

<div class="post-metadata">

**Author:** ![BenedictXVII](https://avatars.discourse-cdn.com/v4/letter/b/50afbb/32.png) [@BenedictXVII](https://techcommunity.softwareag.com/u/BenedictXVII)\
**Post date:** [December 16, 2005, 3:45pm UTC](https://techcommunity.softwareag.com/t/natural-call-vb-com-object/60389/2 "2005-12-16T15:45:40Z")

</div>

> [@Hung Thiet Nguyen](#):
>
> Is this possible to call a method from a handle of object variable which has the object value returned from calling a method of another VB COM object ?

I could possibly give you a hint, but could you first please explain what you are planning to do in a few more sentences and more detail?  
Regards, +o:-]

---

<div class="post-metadata">

**Author:** ![BenedictXVII](https://avatars.discourse-cdn.com/v4/letter/b/50afbb/32.png) [@BenedictXVII](https://techcommunity.softwareag.com/u/BenedictXVII)\
**Post date:** [January 11, 2006, 12:09pm UTC](https://techcommunity.softwareag.com/t/natural-call-vb-com-object/60389/3 "2006-01-11T12:09:19Z")

</div>

Yes. Regards, +o:-]

---

<div class="post-metadata">

**Author:** ![Angel\_Mendoza\_O1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/angel_mendoza_o1/32/191_2.png) [@Angel\_Mendoza\_O1](https://techcommunity.softwareag.com/u/Angel_Mendoza_O1)\
**Post date:** [February 28, 2009, 1:41am UTC](https://techcommunity.softwareag.com/t/natural-call-vb-com-object/60389/4 "2009-02-28T01:41:38Z")

</div>

Is very easy, you don’t need a RPC,

I have VB that send email,

```auto

0250 /*
0260 /* Instance or creates the Class (dll): sag2.send_email - (SAG_email.DLL)
0270 /*
0280 
0290 Create Object #Message Of Class "sag2.send_email"
0300 
0310 /*
0320 /* The Method invokes MENSAJE of the class 
0330 /*
0340 
0350 Send "mensaje" to #Message with
0360 #Sendmail-To
0370 #Sendmail-From
0380 #Sendmail-Subject
0390 #Sendmail-Body
0400 #Sendmail-Attach-Path
0410 #Sendmail-smtp
0420 #Sendmail-retorno
0430 Giving #Error
```

Regards

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:40pm UTC](https://techcommunity.softwareag.com/t/natural-call-vb-com-object/60389/5 "2021-04-02T14:40:22Z")

</div>


