Re: Using DSM API

Barbara Morris <[email protected]> Fri, 12 Mar 2021 14:07:55 -0500
Newsgroups gmane.comp.lang.as400.c
Organization IBM
Message-ID <[email protected]>
On 2021-03-12 8:26 a.m., Alexandre Bencz wrote:
> I am studying the DSM APIs and I am trying to understand how to use the 
> API, QsnWrtSFMaj, to create checkbox, pushbuttons and etc ...
> 
> Based on this example, I tried to understand how the API works, but it 
> was not clear how it works, because apparently in RPG less parameters 
> are sent to the function, already in C, there are N parameters that are 
> not clear what they are
> 

If you have seen an RPG example that does not pass all 8 parameters, it 
is not valid. In the documentation, the last 6 parameters are listed as 
"omissible", but not "optional". "Omissible" means that you can pass 
*OMIT in RPG, or NULL in C, for the parameter. But you must pass 
something for all 8 parameters.

-- 
Barbara

-- 
This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/c400-l
or email: [email protected]
Before posting, please take a moment to review the archives
at https://archive.midrange.com/c400-l.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com