manujmathew
New Member
Hi,this is a code
[FONT='Arial','sans-serif']define var aa as char init "abc".[/FONT]
[FONT='Arial','sans-serif']define var bb as char init "bbb".[/FONT]
[FONT='Arial','sans-serif']define var cnt as int.[/FONT]
[FONT='Arial','sans-serif']cnt = 0.[/FONT]
[FONT='Arial','sans-serif']for each pt_mstr where pt_part > "0006050000" no-lock with frame a:[/FONT]
[FONT='Arial','sans-serif']disp pt_part .[/FONT]
[FONT='Arial','sans-serif']if cnt = 1 then[/FONT]
[FONT='Arial','sans-serif']disp aa colon 1 with no-label.[/FONT]
[FONT='Arial','sans-serif']end.[/FONT]
[FONT='Arial','sans-serif'][/FONT]
[FONT='Arial','sans-serif']i want the o/p in this way[/FONT]
[FONT='Arial','sans-serif']when cnt = 0 then o/p shoild be without spaces in between that is continously after 003126 there should be no space ,003604 should come in the next line itself[/FONT]
[FONT='Arial','sans-serif'][/FONT]
[FONT='Arial','sans-serif']ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³003126 ³
³ ³
³003604 ³
³ ³
³003616 ³
³ ³
³003624 ³
³ ³
³003630 ³
³ ³
³003634 ³
³ ³
³003644 ³
³ ³
³003692 ³
³ ³
³003694 ³
³
when cnt = 1 then o/p is this which is correctly coming [/FONT]
[FONT='Arial','sans-serif']ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³003126 ³
³abc ³
³003604 ³
³abc ³
³003616 ³
³abc ³
³003624 ³
³abc ³
³003630 ³
³abc ³
³003634 ³
³abc ³
³003644 ³
³abc ³
³003692 ³
³abc ³
³003694 ³
³abc ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
[/FONT]
manu
[FONT='Arial','sans-serif']define var aa as char init "abc".[/FONT]
[FONT='Arial','sans-serif']define var bb as char init "bbb".[/FONT]
[FONT='Arial','sans-serif']define var cnt as int.[/FONT]
[FONT='Arial','sans-serif']cnt = 0.[/FONT]
[FONT='Arial','sans-serif']for each pt_mstr where pt_part > "0006050000" no-lock with frame a:[/FONT]
[FONT='Arial','sans-serif']disp pt_part .[/FONT]
[FONT='Arial','sans-serif']if cnt = 1 then[/FONT]
[FONT='Arial','sans-serif']disp aa colon 1 with no-label.[/FONT]
[FONT='Arial','sans-serif']end.[/FONT]
[FONT='Arial','sans-serif'][/FONT]
[FONT='Arial','sans-serif']i want the o/p in this way[/FONT]
[FONT='Arial','sans-serif']when cnt = 0 then o/p shoild be without spaces in between that is continously after 003126 there should be no space ,003604 should come in the next line itself[/FONT]
[FONT='Arial','sans-serif'][/FONT]
[FONT='Arial','sans-serif']ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³003126 ³
³ ³
³003604 ³
³ ³
³003616 ³
³ ³
³003624 ³
³ ³
³003630 ³
³ ³
³003634 ³
³ ³
³003644 ³
³ ³
³003692 ³
³ ³
³003694 ³
³
when cnt = 1 then o/p is this which is correctly coming [/FONT]
[FONT='Arial','sans-serif']ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³003126 ³
³abc ³
³003604 ³
³abc ³
³003616 ³
³abc ³
³003624 ³
³abc ³
³003630 ³
³abc ³
³003634 ³
³abc ³
³003644 ³
³abc ³
³003692 ³
³abc ³
³003694 ³
³abc ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
[/FONT]
manu