The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Passing Arrays?
03-24-2017, 03:40 PM (This post was last modified: 03-24-2017 03:51 PM by toml_12953.)
Post: #1
Passing Arrays?
I'm trying to fill an array in a subprogram. I always get back zeros. What am I doing wrong? Are the parameters passed by value only? If so, is there a way to pass them by reference?

TIA

Tom L

Code:
SET_CONIC( COEF, A, B )
BEGIN
  COEF(1) := A;
  COEF(2) := B;
END;

EXPORT TESTPASS()
BEGIN
  LOCAL C:=MAKEMAT(0,2);   
  SET_CONIC( C, 14, -4 );
  PRINT( C );
END;

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Passing Arrays? - toml_12953 - 03-24-2017 03:40 PM
RE: Passing Arrays? - Han - 03-24-2017, 03:47 PM
RE: Passing Arrays? - toml_12953 - 03-24-2017, 05:23 PM



User(s) browsing this thread: 1 Guest(s)