Re: Script to format file to character number locations?
From: Sean M. Loftus (me)_at_loftus.org)
Date: 01/18/05
- Next message: mayayana: "Re: Where to find Constants and Enumerators?"
- Previous message: Michael Harris \(MVP\): "Re: Terminating a process tree"
- In reply to: Sean M. Loftus: "Script to format file to character number locations?"
- Next in thread: Matthias Tacke: "Re: Script to format file to character number locations?"
- Reply: Matthias Tacke: "Re: Script to format file to character number locations?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 18 Jan 2005 10:57:54 -0500
I'm getting a syntax error on this snippet...
UML_PSInputScript.VBS(111, 14) Microsoft VBScript compilation error: Syntax
error
Function FixLength(sText,iSize)
FixLength = Left(sText & Space(iSize), iSize)
End Function
"Sean M. Loftus" <sean(remove me)@loftus.org> wrote in message
news:eW3AT%23d%23EHA.3756@TK2MSFTNGP14.phx.gbl...
> I'm trying to write a vb script that will take each cell of an excel row
and
> place its text to start at a pre-designated character location. I have the
> excel scripting to read the cell and hold it in a variable, what I need is
a
> script that takes the variable and places it at character 1 or character
55
> etc.
>
> This is a Peoplesoft feed and it has to match the input file they need,
for
> example.
>
> First name starts at char 1
> Last name starts at char 15
> account starts at char 25
> email starts at char 50
>
> Their file is formatted into columns based on character location, so the
> word has to start at the pre-designated character in order to be read into
> the system properly. I can't get them to change the format of the input, I
> already went down that road...
>
> Thanks in advance.
>
> Sean M. Loftus
> Enterprise Architect
> Loftus Consulting
> www.LoftusConsulting.com
>
> sean(removeme)@loftus.org
>
>
- Next message: mayayana: "Re: Where to find Constants and Enumerators?"
- Previous message: Michael Harris \(MVP\): "Re: Terminating a process tree"
- In reply to: Sean M. Loftus: "Script to format file to character number locations?"
- Next in thread: Matthias Tacke: "Re: Script to format file to character number locations?"
- Reply: Matthias Tacke: "Re: Script to format file to character number locations?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|