How to call this procedure ?

Just starting out? Need help? Post your questions and find answers here.
Joris
Addict
Addict
Posts: 885
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

How to call this procedure ?

Post by Joris »

Hi,

Again, Confusion (... will be my epitaph)
How to call this procedure ?

Thanks

Code: Select all

Structure PERF 
  CV.a   
  VM.a
  VL.a
  VD.a   
EndStructure
Global Dim prf.PERF(15)    
Global Dim ctm.PERF(15)    

Procedure Fill(Array a(1).PERF)    ;<= ******** how must this be written ? ***********
  Protected n.i
     
      For n=0 To 15
        a(n)\CV= n * 2
      Next n
    
EndProcedure 

Fill(prf())
Debug prf(7)\\CV
Fill(ctm())
Debug ctm(3)\\CV
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
Marc56us
Addict
Addict
Posts: 1477
Joined: Sat Feb 08, 2014 3:26 pm

Re: How to call this procedure ?

Post by Marc56us »

Perhaps this ?

Code: Select all

Structure PERF 
  CV.a   
  VM.a
  VL.a
  VD.a   
EndStructure
Global Dim prf.PERF(15)    
Global Dim ctm.PERF(15)    

Procedure Fill(Array a.PERF(1)) ; Corrected
  Protected n.i
     
      For n=0 To 15
        a(n)\CV= n * 2
      Next n
    
EndProcedure 

Fill(prf())
Debug prf(7)\CV  ; Corrected
Fill(ctm())
Debug ctm(3)\CV ;  Corrected 

; ShowVariableViewer()
; CallDebugger
Post Reply