2011-03-04 12:27 AM - last edited on 2023-05-24 11:51 AM by Rubia Torres
! DECLARATIONS mID = "" Q_ID = "" Oc_Source = "" Ps_No = "" Ps_OSCrank = "" Gade = "" Oc_Name = "" Psn_Status = "" PsnChangeNote = "" Ofice_Type = "" Pl_gl_verbal = "" At_Sts = "" DIM STF[1000][12] STF[1][1] = "" i_m = 1 ! This must be initialized to 1, otherwise ! INPUT stmt below will cause n1_m = 0 ch1_m = 0 file1_m = "STFSTUF.txt" file2_m = "STFSTUF_DataValidation.txt" ! WORK ch1_m = OPEN ("TEXT", file1_m, "SEPARATOR='\t', MODE=RO, LIBRARY") DO n1_m = INPUT (ch1_m, i_m, 1, mID, Q_ID, Oc_Source, Ps_No, Ps_OSCrank, Gade, Oc_Name, Psn_Status, PsnChangeNote, Ofice_Type, Pl_gl_verbal, _At_Sts) STF[i_m][1] = mID STF[i_m][2] = Q_ID STF[i_m][3] = Oc_Source STF[i_m][4] = Ps_No STF[i_m][5] = Ps_OSCrank STF[i_m][6] = Gade STF[i_m][7] = Oc_Name STF[i_m][8] = Psn_Status STF[i_m][9] = PsnChangeNote STF[i_m][10] = Ofice_Type STF[i_m][11] = Pl_gl_verbal STF[i_m][12] = At_Sts i_m = i_m + 1 WHILE n1_m > 0 CLOSE ch1_m
2011-03-04 05:16 AM
2011-03-04 03:55 PM
2011-03-04 04:04 PM
2011-03-04 04:24 PM
2011-03-16 09:37 AM
didrik wrote:I don't see these
On the main's CALLing side, I have sent over values fromrowsto rows_mand from colsto cols_mand have used the CALL stmt with RETURNED_PARAMETERS STF. The range of resulting error messages indicates some fundamental misunderstandings on my part, somewhere.
didrik wrote:I guess not. It plainly disables the running of all other scripts of the macro object (which, I guess, was your intention).
I wonder if END is a problem here in the macro's Master Script?
didrik wrote:Don't be bothered by the character case of the parameter name - GDL isn't either. Achieving case-insensitivity is done by making everything uppercase inside, hence the uppercase reference in the error message. On the other hand, ArchiCAD surely has a reason not to find that parameter. There can be several reasons for that: mistyping the parameter name at any point, calling a different macro than you're looking at or the parameters having incompatible types.
One point is that the CALLing object error message switches the case of the variable: it says thatCOLS_Misn't a valid parameter name and cites the CALL stmt. I'm not sure what's not valid about it, since it(s lowercase version) plainly exists in the macro. Normally variables are cited back in the same case as they occur in the scripts, even if underneath case doesn't matter.
2011-03-16 11:47 AM