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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Issue with converting string parameter to number

Status
Not open for further replies.

PPetronas

Programmer
Nov 13, 2008
14
0
0
US
Hi All,

I a have a parameter field which is defined as String
({?OID}). When I try to assign it as follows:

{Command.Order_ID}=ToNumber ({?OID})

It pops up a message: "This array must be subscripted"

How do I convert the parameter field to number?

Thanks,
Petronas
 
Since it's a parameter, why not change the datatype from a string to a number?
 
It looks like you must be setting up the parameter outside of the command with "allow multiple values" set to true and using it in the record selection area, since command parameters do not accept multiple values. If you do this, the filtering will all happen locally. It is better to create the parameter within the command.

If you want to use multiple values within the command, there is an FAQ that provides a workaround: faq766-6779.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top