Baanboard.com

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

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
0%
200 - 500 GB
25%
500 - 800 GB
0%
800 - 1200 GB
0%
1200 - 1500 GB
0%
1500 - 2000 GB
75%
> 2000 GB
0%
Total votes: 4

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 5th August 2016, 08:50
Sarath Sarath is offline
Junior Member
 
Join Date: Nov 2015
Posts: 12
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, 13:13
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Guru
 
Join Date: Sep 2012
Location: India
Posts: 2,355
bhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura about
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, 13:17
bdittmar's Avatar
bdittmar bdittmar is offline
Guru
 
Join Date: Apr 2002
Location: Germany, 50.584097,8.544078
Posts: 1,721
bdittmar will become famous soon enough
Baan: 2.2/3.1/4c4/LN6.1 FP6/FP9/HiDox - DB: tbase, ms-sql7, oracle10gV1, 11g - OS: HP-UX, W2K3, SLES
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 13:19. Reason: str/val
Reply With Quote
Sponsored Links
  #4  
Old 5th August 2016, 14:09
manish_patel's Avatar
manish_patel manish_patel is offline
Senior Member
 
Join Date: Apr 2007
Location: Surat-->Bangalore, INDIA
Posts: 190
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
DEV: Export any Baan table to (proper) Excel Francesco Code & Utilities 27 2nd September 2011 14:00
Date casting issue niralibaan Tools Development 2 22nd August 2010 18:26
Help regarding tools session rahul.kolhe22 Tools Development 4 22nd January 2010 13:31
xml question steveauckly Tools Development 4 27th July 2004 10:41
File Browser Bogdan Tools Development 52 7th January 2004 08:17


All times are GMT +2. The time now is 02:37.


©2001-2018 - Baanboard.com - Baanforums.com