Discussions
Convert String to Long in JAVA
Hi all,
Can some people tip me on this issue?
The following is written in java. the following failed during the compilation because myString[] array was declear as string but sales order number(blue below) in webservices definition is default to long type. How can I go around with this?
===================
[LEFT]
string[] myString = readLine.Split('\t');
TransactionSearch soSearch = new TransactionSearch();
SearchLongField soNumber = new SearchLongField();
[EMAIL="soNumber.@operator"]soNumber.@operator[/EMAIL] = [EMAIL="SearchLongFieldOperator.@equalTo"]SearchLongFieldOperator.@equalTo[/EMAIL];
soNumber.operatorSpecified = true;
soNumber.searchValue = myString[0];
TransactionSearchBasic soBasic = new TransactionSearchBasic();
soBasic.number = soNumber;
[/LEFT]