How do i create a vb "Nothing" automation server variable?

phoustounphoustoun Member Posts: 3
I am attempting to use a dll from CyberSource from within NAV6SP1 (although I don't think the version is relevant). One of its object's methods has among parameters several other automation objects. A couple of these objects are optional, in which case "Nothing" is specified in their vbscript example:

nStatus = oClient.RunTransaction ( oMerchantConfig, Nothing, Nothing, oRequest, varReply, strErrorInfo )

The construct in Navision requires variables of type AutomationServer in these "Nothing" positions, and I cannot determine how to accomplish that. Including the automationserver variables alters the functioning, so I need to leave them out. Anybody got an idea how to make a Nothing automationserver variable??? Or some other way to deal with this? I am not a vb person.

This is a real emergency; any help would be appreciated. Many thanks

Comments

  • kinekine Member Posts: 12,562
    Not all automations could be used from within NAV, e.g. just because used data types are not comatible with NAV. I am afraid that this is one example. Best is to create some wrapper around the library (e.g. using C#) and call this wrapper from the NAV. Than you can pass only needed data from NAV in compatible data types and fill rest as needed from c#.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • phoustounphoustoun Member Posts: 3
    Actually, I discovered how to do the "Nothing". Define the automation variable, but never instantiate (create) it. Works fine.

    HOWEVER, you are correct. Having gotten around that hurdle, I did encounter a data type unsupported by c/side, and have been investigating getting just such a wrapper developed for me. Many thanks for your input.
Sign In or Register to comment.