Normas del foro

Curso Hacker
Bienvenido(a), Visitante. Favor de ingresar o registrarse.
¿Perdiste tu email de activación? - Noviembre 21, 2008, 03:36:48
Inicio Ayuda Ingresar Registrarse
Visita: Articulos - Juegos Gratis - Da Foros

Comunidad Underground Hispana  |  Programacion  |  Programación  |  Programación Basica  |  Tema: Urgente: Como pasarle una coleccion de botones a una funcion 0 Usuarios y 1 Visitante están viendo este tema. « anterior próximo »
Páginas: [1] Ir Abajo Imprimir
Autor Tema: Urgente: Como pasarle una coleccion de botones a una funcion  (Leído 237 veces)
Paranoid
Visitante
« en: Noviembre 06, 2003, 06:04:31 »

etoy intentando pasarle una colecion de botones a una funcion, est e es el codigo:

Private Function bot_mover(b As Collection, ByVal rsc As Recordset, index As Integer) As Boolean

Select Case index
Case "0"
rsc.MoveFirst
Case "1"
If Not rsc.BOF Then rsc.MovePrevious
Case "2"
If Not rsc.EOF Then rsc.MoveNext
Case "3"
rsc.MoveLast
End Select
'If IsArray(b) Then
For contador = 0 To 4
If rsc.EOF = True Then
If b(contador).Tag = "Adelante" Then b(contador).Enabled = False Else b(contador).Enabled = True
Else
If rsc.BOF = True Then
If b(contador).Tag = "Atras" Then b(contador).Enabled = False Else b(contador).Enabled = True
Else
b(contador).Enabled = True
End If
End If
Next contador
'End If

bot_mover = True
End Function


al k se le llama asi:

bot_mover cmd_mover_admin, rspass, index

pero me falla no se en que al llamarlo, me da un type mistmatch

Muchas gracias atodos
En línea
Ragnarok
Visitante
« Respuesta #1 en: Noviembre 06, 2003, 02:40:04 »

En línea
Páginas: [1] Ir Arriba Imprimir 
Comunidad Underground Hispana  |  Programacion  |  Programación  |  Programación Basica  |  Tema: Urgente: Como pasarle una coleccion de botones a una funcion « anterior próximo »
Ir a:  


Ranking-Hits
Powered by SMF 1.1.7 | SMF © 2006-2007, Simple Machines LLC