Hello all,
I am working with CA-BLE macros and am unable to find anyone that can help with related errors. I am hoping one of you out there in VB world has some experience with CA-BLE or perhaps this error might be similar to one in VB.
Here is the error I am receiving-
Line: 40 – Parameter 1 – Expecting numeric scalar, found string scalar
Syntax: nv=Index(nsSize)
Here is the CA-BLE code that is causing the error:
[ fFields=CmdInit("CSCALENDAR#2",0)
getper = CmdFetch( "CSCALENDAR#2", 0 )
fDialog.CompDrop2.Entries = Index(getper.PERIODS)]
The PERIODS field is an Integer field in the database. It contains one of two values - either 12 or 13 (number of fiscal periods for a given company) What I am trying to do is make a drop down box that lists out periods in the year (ie 1 2 3 etc) so the period for reporting can be selected. Can I convert it to numeric scalar somehow? Or does someone know how to write an array in CA-BLE????
Thank you for any help!
MC
I am working with CA-BLE macros and am unable to find anyone that can help with related errors. I am hoping one of you out there in VB world has some experience with CA-BLE or perhaps this error might be similar to one in VB.
Here is the error I am receiving-
Line: 40 – Parameter 1 – Expecting numeric scalar, found string scalar
Syntax: nv=Index(nsSize)
Here is the CA-BLE code that is causing the error:
[ fFields=CmdInit("CSCALENDAR#2",0)
getper = CmdFetch( "CSCALENDAR#2", 0 )
fDialog.CompDrop2.Entries = Index(getper.PERIODS)]
The PERIODS field is an Integer field in the database. It contains one of two values - either 12 or 13 (number of fiscal periods for a given company) What I am trying to do is make a drop down box that lists out periods in the year (ie 1 2 3 etc) so the period for reporting can be selected. Can I convert it to numeric scalar somehow? Or does someone know how to write an array in CA-BLE????
Thank you for any help!
MC