2008 Feb 24 5:40 AM
HI ALL
I HAVE ONE FIELD, ITS VALUE IS '500632732008' AND ITS DATA TYPE IS CHAR.
I WANT TO REMOVE '2008' FROM THE VALUE.
WHAT SHOULD I DO?
PLZ HELP ME.
2008 Feb 24 6:08 AM
Hey try this
w_level_03 = strlen( W_STRING ).
lv_offset = w_level_03 - 4.
w_string2 = w_string +(lv_offset).
or
w_string2 = w_string +0(lv_offset).
Eg:-
str = "testing1234".
int offset = strlen( str ) - 4.
str = str+0(offset).
Write : str.
Then the output would be testing.
Regards,
Chandru
HI ALL
I HAVE ONE FIELD, ITS VALUE IS '500632732008' AND ITS DATA TYPE IS CHAR.
I WANT TO REMOVE '2008' FROM THE VALUE.
WHAT SHOULD I DO?
PLZ HELP ME.
2008 Feb 24 6:08 AM
Hey try this
w_level_03 = strlen( W_STRING ).
lv_offset = w_level_03 - 4.
w_string2 = w_string +(lv_offset).
or
w_string2 = w_string +0(lv_offset).
Eg:-
str = "testing1234".
int offset = strlen( str ) - 4.
str = str+0(offset).
Write : str.
Then the output would be testing.
Regards,
Chandru
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |