Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to remove space from a variable in a smartform

Former Member
0 Likes
2,832

Hi,

I have a problem in displaying a variable in a smartform..The variable shows some blank space that preceeds the data.

for eg:,

variable = 18.000.

How to remove space before 18.000?

Hi,

I have a problem in displaying a variable in a smartform..The variable shows some blank space that preceeds the data.

for eg:,

variable = 18.000.

How to remove space before 18.000?

6 REPLIES 6
Read only

Former Member
0 Likes
1,660

To remove the decimal places for quantity and rate/quantity , use the syntax to restrict the number of digits after decimal places. The syntax is

&symbol(.N)&

where N is number of decimal places.

Since you dont want decimals use &symbol(.0)&

For the other case it depends on how the currency is represented , any way try using the syntex &symbol(T)&

Please give me reward point If it is useful

Thanks

Murali Poli

Read only

former_member188827
Active Contributor
0 Likes
1,660

declare a typr c varaible in global definitions

zchar type char10

create program lines as:

input parameter:

zint(ur variable holding value 18)

output parameter:

zchar

Code:

write zint to zchar.

condense zchar.

in da text element display zchar

plz reward points if dis helps

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,660

Hi,

Try &variable_name&(C)

Read only

0 Likes
1,660

Thank For your Solution.

I was try number of time try to remove leading space in smartform text .

it was resolve using &Variable(C)&

Read only

Former Member
0 Likes
1,660

Friends ...

variable = 18.000

i dont want space between = and 18.000...decimal is required.

Read only

Former Member
0 Likes
1,660

Thanks guys...