Exemplo n.º 1
0
Arquivo: Api.cs Projeto: fw2568/YaNco
        public static RfcRc GetTypeFieldDescription(TypeDescriptionHandle descriptionHandle, int index,
                                                    out RfcFieldInfo parameterInfo, out RfcErrorInfo errorInfo)
        {
            var rc = Interopt.RfcGetFieldDescByIndex(descriptionHandle.Ptr, (uint)index, out var parameterDescr, out errorInfo);

            parameterInfo = new RfcFieldInfo(parameterDescr.Name, parameterDescr.Type, parameterDescr.NucLength, parameterDescr.UcLength, parameterDescr.Decimals);
            return(rc);
        }
Exemplo n.º 2
0
Arquivo: Api.cs Projeto: fw2568/YaNco
        public static RfcRc GetTypeFieldCount(TypeDescriptionHandle descriptionHandle, out int count,
                                              out RfcErrorInfo errorInfo)
        {
            var rc = Interopt.RfcGetFieldCount(descriptionHandle.Ptr, out var uIntCount, out errorInfo);

            count = (int)uIntCount;
            return(rc);
        }