At 09:09 AM 7/5/2010, Luc Delcoigne wrote:

in a report I have to translate the following Access var to R:base:

= ([Pnaam] & Space(24-Len([Doktersnaam])) & [Doktersvoornaam])

this has to be sent to a txt-file, where the line-position of the
first character of 'Doktersvoornaam' is 25. So, i have 24 positions
to fill with the name and fill the rest with blanks.

What is the most elegant way to do this in R:base ?

Luc,

You can provide such data as Fixed Filed ASCII format using SPUT
and SFIL functions of R:BASE!

Take a look at the following article with examples to help you
understand the logic of creating a plain text file with fixed
fields.

From The Edge: http://www.razzak.com/fte/

Topic Header: FIXED > Search

Topic: Creating Fixed Field ASCII Files

Hope it helps!

Very Best R:egards,

Razzak.

--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]

(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE: Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body, place any text to search for.
================================================


Reply via email to