The field is text or code? Code trim all spaces from right...
But why you need to Left-justify the field, if you are using fixed position type? Next field will begin on given position, all between will be filled with spaces... or not?
If you are using CODE type, the leading spaces will be trimmed. Use Text datatype or use the trigger OnAfterFormatField on the Dataport field in this way
<variablename> - OnAfterFormatField(VAR Text : Text[1024])
WHILE STRLEN(Text)<10 DO
Text := ' ' + Text;
Comments
But why you need to Left-justify the field, if you are using fixed position type? Next field will begin on given position, all between will be filled with spaces... or not?
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.