Prototype question - '_LBCPYNV'
Last Post 22 Mar 2013 04:38 PM by MIKE SCHLEMME. 3 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
MIKE SCHLEMME
Basic Member
Basic Member
Posts:145
Avatar

--
22 Mar 2013 03:41 PM

I'm trying to use the Copy Numeric Value MI instruction.  I've swiped code from Bruce Vining.

My code won't compile (it's actually a module and a program) because is says the prototype for the Copy Numeric Value is not found.

When I search the compile, it show's the prototype in the compile listing, yet is says "RNF5410 The prototype for the call is not defined".

COPYNUMERICVALUE  PROTOTYPE              004200D     029200M

The compile also lists the following:

Statically bound procedures:                                  
   Procedure                            References            
   _LBCPYNV                                 004200            
   GETFILEFIELDS                           3411900      017500
   ALPHAVALUEINLIST                        3157700      019500

My prototype, CopyNumericValues, is not listed, however the _LBCPYNV is.

Here's my prototype:

D CopyNumericValue...                                    
D                 PR                  ExtProc('_LBCPYNV')
D Receiver...                                            
D                                     Like(Target)       
D ReceiverAttributes...                                  
D                                7a   Const              
D Source...                                              
D                                     Const Like(Source) 
D SourceAttributes...                                    
D                                7a   Const

The only difference between Bruce's example and mine is Bruce used a CRTBNDRPG and I create the module first and then a program.


Any idea what I'm doing wrong?


Thanks...


Any ideas


MIKE SCHLEMME
Basic Member
Basic Member
Posts:145
Avatar

--
22 Mar 2013 04:14 PM

Nevermind.  I found it.

Some code was 'out of order'.  I rearranged the prototypes, D specs, etc and it compiled.


Thanks anyway.... 

MIKE SCHLEMME
Basic Member
Basic Member
Posts:145
Avatar

--
22 Mar 2013 04:28 PM

Nevermind the last post.

I still have the same problem.

Help!!!

MIKE SCHLEMME
Basic Member
Basic Member
Posts:145
Avatar

--
22 Mar 2013 04:38 PM

Found it.

A typo in the parms to the procedure caused the problem.


Crazy!

You are not authorized to post a reply.

Acceptable Use Policy