Find Jobs
Hire Freelancers

Passing Arrays and UDTs to forms

$30-5000 USD

Terminado
Publicado hace casi 22 años

$30-5000 USD

Pagado a la entrega
I need to fill User Defined Type arrays in one form and then pass one of the arrays to another form. Currently I am using Public variables to do this but that limits the reusability of the code. For example, the second form may hold an MSFlexGrid that displays all the data in the UDT array. I may have 10 different arrays. I'd like to be able to pass any one of them to the second form. This is very difficult to do with global variables. There must be a better way. Here is the UDT definition in a code module: Type DataElement Location as Single Value as Single Comment as String End Type Here is the declaration in Form1: Dim DataArray(100) as DataElement Dim SecondArray(100) as DataElement then the arrays get filled: For i = 1 to 100 DataArray(i).Location = i DataArray(i).Value = 5 * i DataArray(i).Comment = Str$(i) SecondArray(i).Location = rnd() SecondArray(i).Value = 3.14159 SecondArray(i).Comment = "Test" + Str$(i) Next i Sometimes I want to pass DataArray to another form. Another time I may want to pass SecondArray. I want to be able to read all the data in the array and change it, then pass it back to the calling form. ## Deliverables Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased. ## Platform Visual Basic 6
ID del proyecto: 2858550

Información sobre el proyecto

3 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
Adjudicado a:
Avatar del usuario
See private message.
$2 USD en 14 días
5,0 (8 comentarios)
3,3
3,3
3 freelancers están ofertando un promedio de $6 USD por este trabajo
Avatar del usuario
See private message.
$8,50 USD en 14 días
5,0 (2 comentarios)
0,0
0,0
Avatar del usuario
See private message.
$8,50 USD en 14 días
0,0 (1 comentario)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
Centreville, United States
5,0
15
Forma de pago verificada
Miembro desde mar 1, 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.