Find Jobs
Hire Freelancers

Function to output formatted columns for fixed-width fonts

$30-35 USD

Cerrado
Publicado hace más de 21 años

$30-35 USD

Pagado a la entrega
I need a VERY efficient VB 6.0 function that takes an array or comma-delimited text, adds spaces to each column so the columns line up with fixed width font and outputs it as a string with VBCrLf at the end of each line. I also would like to optionally give the function a "screen width" limit so that it will truncate if it goes over, and only the column I specify. I would like to specify a header "underline" character and how many spaces should be between each column. Everything can be left justified. The first line would contain the headers. See below. Function input would be something like: InputString = "Person's Name,Age,Street Address,Wages" & VBCrLf & _ "George Miller,26,100 E. 1st St., Apt. 5,$24/hour" & VBCrLf & _ "John Smith,51,523 S. Wayne Ave.,$35/hour" & VBCrLf & _ "Jackie Chan,32,2223 Wilmington Street,$21/hour" & VBCrLf & _ "Elizabeth Humperdink,32,15541 West Alameda Avenue,$21/hour" & VBCrLf OutputString = FormatColumns(InputString, "-", 2, 60, 1, True) 2 is the number of spaces between each column 60 would be the limit of the screen char. width 1 being the column I want it to truncate if the rows would go over 60. True specifies if I want the truncated column to add "..." to show there was something after it that was truncated. The following would be 62 char. wide if I didn't put in the 60 char. option to truncate it. I don't want something like the Age column truncated because it's below 20 char. as specified in the function call. OutputString would be: Person's Name Age Street Address Wages ------------------ --- ------------------------- -------- George Miller 26 100 E. 1st St., Apt. 5 $24/hour John Smith 51 523 S. Wayne Ave. $35/hour Jackie Chan 32 2223 Wilmington Street $21/hour Elizabeth Humpe... 32 15541 West Alameda Avenue $21/hour That may not come out right on the web, but if you download my attached file into Notepad with a fixed width font like Lucida Console, you'll see what I mean. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased. ## Platform Not platform specific ## Deadline information Please complete within a couple days after acceptance.
ID del proyecto: 2874935

Información sobre el proyecto

11 propuestas
Proyecto remoto
Activo hace 22 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
11 freelancers están ofertando un promedio de $21 USD por este trabajo
Avatar del usuario
See private message.
$29,75 USD en 14 días
5,0 (24 comentarios)
5,2
5,2
Avatar del usuario
See private message.
$10,20 USD en 14 días
5,0 (39 comentarios)
4,4
4,4
Avatar del usuario
See private message.
$14,45 USD en 14 días
5,0 (27 comentarios)
4,4
4,4
Avatar del usuario
See private message.
$19,13 USD en 14 días
4,9 (20 comentarios)
3,3
3,3
Avatar del usuario
See private message.
$25,50 USD en 14 días
5,0 (14 comentarios)
2,9
2,9
Avatar del usuario
See private message.
$21,25 USD en 14 días
4,5 (5 comentarios)
2,5
2,5
Avatar del usuario
See private message.
$17 USD en 14 días
4,7 (9 comentarios)
2,7
2,7
Avatar del usuario
See private message.
$17 USD en 14 días
1,8 (4 comentarios)
1,2
1,2
Avatar del usuario
See private message.
$25,50 USD en 14 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
See private message.
$28,05 USD en 14 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
See private message.
$20,40 USD en 14 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
Springboro, United States
5,0
155
Forma de pago verificada
Miembro desde ene 21, 2002

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.