Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

Retirement Notice

Baanboard is shutting down on 31-dec-2023. See: http://www.baanboard.com/baanboard/showthread.php?t=76043


User login

Frontpage Sponsor

Main

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

Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 5th August 2016, 09:50
Sarath Sarath is offline
Junior Member
 
Join Date: Nov 2015
Posts: 18
Sarath is on a distinguished road
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. 
Reply With Quote
  #2  
Old 5th August 2016, 14:13
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Guru
 
Join Date: Sep 2012
Location: India
Posts: 2,503
bhushanchanda is a jewel in the roughbhushanchanda is a jewel in the roughbhushanchanda is a jewel in the rough
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!
Reply With Quote
  #3  
Old 5th August 2016, 14:17
bdittmar's Avatar
bdittmar bdittmar is offline
Guru
 
Join Date: Apr 2002
Posts: 1,982
bdittmar will become famous soon enough
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
Reply With Quote
  #4  
Old 5th August 2016, 15:09
manish_patel's Avatar
manish_patel manish_patel is offline
Senior Member
 
Join Date: Apr 2007
Location: Surat-->Bangalore, INDIA
Posts: 191
manish_patel is on a distinguished road
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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help regarding tools session rahul.kolhe22 Tools Development 5 9th April 2021 10:22
DEV: Export any Baan table to (proper) Excel Francesco Code & Utilities 27 2nd September 2011 15:00
Date casting issue niralibaan Tools Development 2 22nd August 2010 19:26
xml question steveauckly Tools Development 4 27th July 2004 11:41
File Browser Bogdan Tools Development 52 7th January 2004 09:17


All times are GMT +2. The time now is 00:41.


©2001-2023 - Baanboard.com - Baanforums.com