Ver Mensaje Individual
  #5 (permalink)  
Antiguo 05/01/2015, 13:50
Avatar de acopantepuy
acopantepuy
 
Fecha de Ingreso: junio-2010
Ubicación: Caracas
Mensajes: 21
Antigüedad: 13 años, 10 meses
Puntos: 0
Respuesta: Desglosar caption label

Me referia a esto:

Código vb:
Ver original
  1. Option Explicit
  2.  
  3. Private Sub Command1_Click()
  4.     Dim cantidad As String
  5.     Dim largoCantidad As Integer
  6.     Dim i As Integer
  7.    
  8.     cantidad = Text1.Text
  9.    
  10.     largoCantidad = Len(cantidad)
  11.    
  12.     If largoCantidad > 3 Or largoCantidad < 3 Then
  13.    
  14.         MsgBox "El numero debe ser de tres dìgitos", vbInformation
  15.     Else
  16.        
  17.         i = 0
  18.        
  19.         For i = 0 To 2 Step 1
  20.                  
  21.             Label1(i).Caption = Mid(cantidad, i + 1, 1)
  22.        
  23.         Next i
  24.        
  25.     End If
  26.    
  27.    
  28.    
  29. End Sub

La etiqueta label la manejas como un arreglo de controles