Baanboard.com

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

User login

Frontpage Sponsor

Main

Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
18%
200 - 500 GB
29%
500 - 800 GB
3%
800 - 1200 GB
8%
1200 - 1500 GB
8%
1500 - 2000 GB
12%
> 2000 GB
23%
Total votes: 77

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 6th November 2019, 07:11
anshul990 anshul990 is offline
Junior Member
 
Join Date: Aug 2019
Posts: 9
anshul990 is on a distinguished road
Baan: 10 - DB: db - OS: WINDOWS7
How to intialize double variable in baan

I have created a double domain in a session.when i start session it automatically display as 0.0000 but i want to display it as blank .

pls help

little urgent
Reply With Quote
  #2  
Old 7th November 2019, 11:25
günther günther is offline
Guru
 
Join Date: Jan 2002
Location: Ehingen, Germany
Posts: 595
günther is on a distinguished road
Baan: IVc4 - DB: Informix - OS: HP-UX
Hi,

as I see, you are on LN. But Maybe my Baan IV Knowledge can help.

Code:
field.xxxx:
before.display:
    if double.cmp(xxxx, 0.0, 0.0001) then
        attr.oformat$ = "Z"
    else
        attr.oformat$ = "ZZZTZZZTZZ9VD999" | or so
    endif
Reply With Quote
  #3  
Old 7th November 2019, 16:21
bdittmar's Avatar
bdittmar bdittmar is offline
Guru
 
Join Date: Apr 2002
Location: Germany, 50.584097,8.544078
Posts: 1,820
bdittmar will become famous soon enough
Baan: 2.2/3.1/4c4/LN6.1 FP6/FP9/HiDox Tools 10.7 - DB: tbase, ms-sql7, oracle10gV1, 11g - OS: HP-UX, W2K3, SLES
attr.oformat$

Quote:
Originally Posted by günther View Post
Hi,

as I see, you are on LN. But Maybe my Baan IV Knowledge can help.

Code:
field.xxxx:
before.display:
    if double.cmp(xxxx, 0.0, 0.0001) then
        attr.oformat$ = "Z"
    else
        attr.oformat$ = "ZZZTZZZTZZ9VD999" | or so
    endif
Hello,
attr.oformat$ also exists in LN
Code:
string attr.oformat$(30) 4 Output format of field.
From LN-Devguide 10.7.1
Code:
double.cmp()
Syntax:
function long  double.cmp  (double double1, double double2, double tolerance)

Description

Arguments
double double1 A double value.
 
double double2 A double value.
 
double tolerance Specifies a tolerance value for the function. If the difference between the two doubles is less than this value, the doubles are considered equal. 

Do not use a tolerance of 0. Also, do not use a negative tolerance.
 
Return values
0 the difference between the doubles is less than the tolerance. 

-1 double1 is less than double2 (the difference is greater than the tolerance). 

1 double1 is greater than or equal to double2 (the difference is greater than the tolerance). 

Context
This function is implemented in the porting set and can be used in all script types. 

Example:
double doub1, doub2

if double.cmp( doub1, doub2, 0.0001 ) = 0 then
        | the two doubles are equal
        ...
endif
Regards
__________________
//Bernd
Reply With Quote
Sponsored Links
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
Baan Administrator Christina Gampa Jobs and Resumes 0 10th January 2008 11:26
OLE Zugriff von MS Word auf Baan Daten Locher Deutsches Forum 9 28th May 2006 21:32
Is it possible to write directly in Baan tables from an external interface? gaetan_m Open World, Portal & Decision Manager 2 27th March 2005 01:01
BSP-US (LLC) added as a Baan Education Alliance svandenh General Discussion & Chat 1 20th August 2001 20:44


All times are GMT +2. The time now is 08:25.


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