guilmor
4th November 2002, 10:12
Hello,

is there any function to convert a variable value into a specific domain format?

Example:

I have this string domain tcorno, suppose this domain aligns the string to the left and makes uppercase the characters, and it's 10 characters wide.

Then I have this expression " abcdefghijklmn" which I want to convert into domain tcorno format "ABCDEFGHIJK".
I'm looking for some function like this:

orno = use.domain("tcorno"," abcdefghijklmn")

Thanks
Guilmor

Paul P
4th November 2002, 10:25
Dear guilmor,

Simple assignment from source variable to a target variable with specific domain will cut the length of source variable according to domain of target var

The function below will align according to domain alignment
tt.align.according.domain( string string_in(.), ref string string_out(), string domain_name )

In addition, if you're on B5, you have these 2 DLLs
tccomdll0007 ROund qty with given domain and unit rounding
tccomdll0066 Copy strings with different domain
However, I don't have the complete function list inside these 2 DLLs

Rgds,
Paul

guilmor
4th November 2002, 11:29
Paul, I get "unresolved reference to function 'tt.align.according.domain'", It must be some include. Do you know which one?

Ilansu
4th November 2002, 14:57
use the

#include <bic_tt>

Ilan S

baanryanm
6th June 2003, 19:09
Thank you, thank you, thank you! I have been trying to use the tt.align.according.domain for some time now. I always got the unresolved reference error and stopped.

Thank you for the solution. I can stop pulling my hair out now.