Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CA-BLE Error- Expecting Numeric Scalar found String scalar

Status
Not open for further replies.

Hdiva

Programmer
Feb 8, 2005
3
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top