[GR-Jug] mod of 2 int's
Steve_Grody at accessbusinessgroup.com
Steve_Grody at accessbusinessgroup.com
Wed Feb 25 09:16:51 EST 2004
Anyone have any ideas why the below error occurs? Is it a Zero division
issue?
java:59: int cannot be dereferenced
outString = mod.toString();
Here's the whole thing:
IDataHashCursor pipelineCursor = pipeline.getHashCursor();
String number1 = "";
String number2 = "";
int num1 = 0;
int num2 = 0;
int mod = 0;
String outString = "";
try
{
// get the input date
pipelineCursor.first ( "number1" );
number1 = (String) pipelineCursor.getValue();
pipelineCursor.first ( "number2" );
number2 = (String) pipelineCursor.getValue();
num1 = Integer.parseInt(number1);
num2 = Integer.parseInt(number2);
mod = num1 % num2;
outString = mod.toString();
// put the new string in the pipeline
Stephen L Grody
Access Business Group - Integrations
www.AccessBusinessGroup.com
7575 E FULTON SE
ADA MI 49355-0001
Office: 616-787-0188
Cell: 616-502-2454
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gr-jug.org/pipermail/jug/attachments/20040225/6fbebfc1/attachment.htm
More information about the Jug
mailing list