amolpk
7th April 2006, 13:03
how to convert long valu to string..??
which function shall i use ???


amol

Han Brinkman
7th April 2006, 13:09
Syntax

string str$( num_expr )

Description

This converts an integer or floating point expression to a string.

Context

Bshell function.

© 1998 Baan Development B.V. All rights reserved

baanprog
7th April 2006, 13:10
Hi ,

string STR$( num_expr )
The STR$ function converts integer and floating point expressions to a string.

Regards

KaasKarthik
24th August 2020, 07:00
hello sir, i am new baan learner ,could i know how to convert string to enumerated?
waiting for the reply.

mark_h
24th August 2020, 15:18
See this http://www.baanboard.com/baanboard/showthread.php?t=62261&highlight=convert+string+enumerated post here. Depending on what string you have on what it might take to get the enumerated value.

bdittmar
24th August 2020, 20:28
Hello,


etol()
Syntax:
function long etol (domain domain_value)

Description

This returns the numeric code corresponding to a specified value in an enumerated domain.


Arguments
domain domain_value The name of the domain. The domain must be of type enumerated.

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


ltoe()
Syntax:
function domain ltoe (long long_value)

Description

This returns the named constant corresponding to a specified numeric code. The numeric code represents one of the values in an enumerated domain.

Arguments
long long_value The numeric code represents one of the values in an enumerated domain.

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

Example
This example assumes an enumerated domain 'tcyesno' with two possible constants: 'tcyesno.yes’ (=1) and 'tcyesno.no’ (=2).

domain tcyesno active
long enum_long

active = tcyesno.no
enum_long = etol( active ) | enum_long now contains 2
active = ltoe( 1 ) | active now equals tcyesno.yes


http://www.baanboard.com/programmers_manual_baanerp_help_functions_enumerates_ltoe