Retirement Notice
|
|
User login
|
|
Frontpage Sponsor
|
|
Poll
|
What do you expect from your SI Implementation partner for the success of ERP implementation. Bring best practices - Not to offer more CR's Leveraging standard functions 20% Need more honesty to work with the Users until their processes are fully mapped & Users are trained 40% Focus on process automation/ integrations/ Real time data/ BI analytics 13% Stick to basics 27% Total votes: 15 |
|
|
 |

5th August 2016, 09:50
|
Junior Member
|
|
Join Date: Nov 2015
Posts: 18
|
|
Baan: Infor erp LN -
DB: ERP -
OS: windows XP
|
String to Long conversion
A new blog entry has been added:
String to Long conversion
Quote:
Hi,
Could I know how to convert the string to Long ?
Regards,
Sarath Kumar Namburi.
|
|

5th August 2016, 14:13
|
 |
Guru
|
|
Join Date: Sep 2012
Location: India
Posts: 2,503
|
|
Baan: LN FP 1-9, 10.4, a little bit of Baan IV -
DB: SQL Server 2008, Oracle -
OS: Windows Server 2008 R2, Unix
|
Hi,
To get answers, please post the questions in the related forums and not as a blog. Moved to correct forum -> Tools Dev.
For converting string to long, use val() function
e.g.
Code:
string xyz(5)
long abc
xyz = "100"
abc = val(xyz)
__________________
Regards,
Bhushan
Unless you try to do something beyond what you have already mastered, you will never grow!
|

5th August 2016, 14:17
|
 |
Guru
|
|
Join Date: Apr 2002
Posts: 1,982
|
|
Baan: 2.2/3.1/4c4/LN6.1 FP6/FP9/HiDox Tools 10.7/D.3 -
DB: tbase, ms-sql7, oracle10gV1, 11g, 12c, 19c -
OS: HP-UX, W2K3, SLES, RHLE
|
str$
Hello,
str$ / val converts
Code:
str$()
Syntax:
function string str$ (long or double number)
Description
This function converts an integer or floating point value to its textual representation.
Arguments
long or double number
----------------------
val()
Syntax:
function double val (string expr)
Description
This function converts the supplied textual representation to the represented floating point value or to the floating point value corresponding to the represented integer value.
Arguments
string expr
Regards
__________________
//Bernd
Last edited by bdittmar : 5th August 2016 at 14:19.
Reason: str/val
|

5th August 2016, 15:09
|
 |
Senior Member
|
|
Join Date: Apr 2007
Location: Surat-->Bangalore, INDIA
Posts: 191
|
|
Baan: Baan IVc4, Baan 5.0 b -
DB: Oracle 11g R2 -
OS: HP-UX 11.31
|
For performance reason, if string var does not contain double and float value, you should use lval() instead of val().
__________________
Thanks & Regards,
Manish
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|