Application Development 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: 

What is tbsl-faus1?

Former Member
0 Kudos

Can anyone tell me

if tbsl-faus1+8(1) = ' - '

What is the exact meaning?

2 REPLIES 2

Former Member
0 Kudos

hi,

if tbsl-faus1+8(1) = ' - '

this is to check if the character of faus1's 8th position single character is '-'.

ex: faus1 = 'abcdefgh-a'.

here faus1+ 8(1) is -

regards,

madhumitha

prasanth_kasturi
Active Contributor
0 Kudos

HI,

ITS AN OFFSET.

IF WE WANT ONLY A PART OF THE STRING WE USE OFFSET.

EXAMPLE THE DATE IS STORED AS DATE = 02202008.

IF WE WANT THE DATE WE USE DATE1 = DATE+2(2).

HERE 2 REFERS TO THE STARTING POSITION FROM WHERE WE WANT THE VALUE.

AND THE OTHER 2 REFERS UPTO HOW MANY CHARACTERS OR DIGITS WE WANT.

THE STARTING POSITION STARTS COUNTING WITH 0. SO FOR DATE WE USED 2 INSTED OF 3.

IN YOUR EXAMPLE IF THE STRING IS '...---+....---'. THEN FROM STARTING FROM ZERO THE EIGHT POSITION GIVES A '-'

HOPE U UNDERSTAND

REWARD IF HELPFUL.

PRASANTH