It looks like you're new here. Sign in or register to get started.
DatVar := FORMAT(DatVar,MAXSTRLEN(DatVar),'<Text><Filler Character,0>');
tiagofrancis wrote: Im exporting it with a report.
Comments
Tino Ruijs
Microsoft Dynamics NAV specialist
I would use FORMAT instead of PADSTR...
IF (g_recCustomer."Empresa Financiadora" = TRUE) THEN
IF (g_recCustomer."Grupo TAP" = TRUE)
THEN BEGIN
g_EmployeeNo := Table91110."Num. Empregado";
g_KeyString := "Num. Empregado"+"Grau de Parentesco"+"Num seq parentesco";
g_CodUCS := Table91110."Cód. Cliente";
FillChar;
g_fileFicheiro1.WRITE(g_EmployeeNo+g_KeyString+g_CodUCS);
END;
FillChar() ---> Function
BlankSpace := ' ';
IF g_EmployeeNo = '' THEN
g_EmployeeNo := PADSTR(g_EmployeeNo,MAXSTRLEN(g_EmployeeNo),BlankSpace);
IF g_KeyString = '' THEN
g_KeyString := PADSTR(g_KeyString,MAXSTRLEN(g_KeyString),BlankSpace);
IF g_CodUCS = '' THEN
g_CodUCS := PADSTR(g_CodUCS,MAXSTRLEN(g_CodUCS),BlankSpace);
i'm trying to put the spcace char in all "positions" of the empty variable
so i wont lose the position of the pointer in the text file.
e.g.
11111 22222 333333
11111 _____ 333333
the underscore should be the space char that happends if the variable is empty. ](*,)
you should have
BlankSpace := ' ';
instead of
BlankSpace := ' ';
Albert
Edit sorry the space character doesn't show in between the ''
Brijesh Karnatak
If you would have used a dataport as supposed to by design you wouldn't have this issue.