|
Página 1 de 1
|
Error al Importar Proyecto de Gambas 2 a Gambas 3.1
Autor |
Mensaje |
homny
Usuario
Registrado: Enero 2011
Mensajes: 18
Edad: 40 Ubicación: Cumaná, edo. Sucre
|
Error al Importar Proyecto de Gambas 2 a Gambas 3.1
al tratar de convetir el proyecto de gambas2 a gambas 3.1 me da un error: No es posible abrir un archivo binario (imposible convertir planteles.class not an objet CComponent.GetClassSymbols.1241)
hay una incompatibilidad, me dice que lo va a convertir y luego da este error.
Ayuda por favor, a todos los gamberos...
|
#1 Domingo, 15 Abril 2012, 17:43 |
|
|
jguardon
Administrador
Registrado: Septiembre 2009
Mensajes: 2708
Edad: 57 Ubicación: Granada
|
Re: Error al Importar Proyecto de Gambas 2 a Gambas 3.1
¿Qué ocurre entonces?. Finalmente ¿importa el proyecto o se queda a medias? Normalmente la importación intenta corregir algunas diferencias en el lenguaje e introduce comentarios donde haya habido cambios. Puede que haya encontrado algo imprevisto...
Sin ver el código de la clase implicada (planteles.class), es difícil saber qué está pasando, aunque reconozco que el error no es demasiado explicativo.
Saludos
=================== Jesús Guardón
Por favor, usemos el corrector ortográfico antes de pulsar el botón "Enviar".
"uo ǝs ʇɐu pıɟıɔıן ɐdɹǝupǝɹ ɐ dɹoƃɹɐɯɐɹ, soןo ɥɐʎ bnǝ dɹodouǝɹsǝןo"
|
#2 Domingo, 15 Abril 2012, 18:56 |
|
|
homny
Usuario
Registrado: Enero 2011
Mensajes: 18
Edad: 40 Ubicación: Cumaná, edo. Sucre
|
Re: Error Al Importar Proyecto De Gambas 2 A Gambas 3.1
este es el código hermano...
- ' gambas class file
- PUBLIC hconn AS Connection
- PUBLIC hresult AS Result
- PUBLIC hresultparro AS Result
- PUBLIC hresultcontar AS Result
- PUBLIC buscaregis AS Result
- PUBLIC regisfiltrado AS Result
- PUBLIC buscaregisparroquia AS Result
- PRIVATE clave AS String
- PUBLIC plantel AS String
- PUBLIC ubicacion AS String
- PUBLIC ner AS String
- PUBLIC telefono AS String
- PUBLIC correo AS String
- PUBLIC observacion AS String
- PUBLIC s AS Integer
- PUBLIC valor1 AS String
- PUBLIC sw AS Integer
- PRIVATE sumando AS Integer
- PRIVATE sumando2 AS Integer
- PUBLIC textoparroquia AS String
- PRIVATE suiche AS Integer
-
- PUBLIC SUB abriendo()
- tablaplanteles.Clear()
- IF conectarbase() THEN RETURN
- tablaplanteles.Columns.Count = 4
- '---------definir los campos---------------
- tablaplanteles.Columns[0].Text = "Escuela"
- 'tablaplanteles.Columns[0].Alignment = 2
- tablaplanteles.Columns[1].Text = "Ner"
- tablaplanteles.Columns[2].Text = "Ubicación"
- tablaplanteles.Columns[3].Text = "Observación"
-
- IF combomuni.Text = "TODOS" THEN
- hresult = hconn.Exec("select * from escuelas order by escuela asc")
- sw = 0
- ELSE
- IF variablesglobales.sw2 = 0 THEN
- hresultparro = hconn.Exec("select * from parroquia where codigomunicipio = '" & txtmuni.Text & "' and parroquia = '" & comboparroquia.Text & "'")
- ELSE
- hresultparro = hconn.Exec("select * from parroquia where codigomunicipio = '" & txtmuni.Text & "' and parroquia = '" & nuevo.txtparroquia.Text & "'")
- ENDIF
- IF hresultparro.Count <> 0 THEN
- hresult = hconn.Exec("select * from escuelas where codigomunicipio = '" & txtmuni.Text & "' and codigoparroquia = '" & hresultparro!codigoparroquia & "' order by escuela asc")
- IF variablesglobales.sw2 = 1 THEN
- comboparroquia.Text = nuevo.txtparroquia.Text
- ENDIF
- ELSE
- sw = 1
- ENDIF
- ENDIF
-
- IF sw = 0 THEN
- DO WHILE hresult.Available
-
- clave = hresult["codigoescuelagenerado"]
-
- tablaplanteles.Add(clave, clave)
- tablaplanteles[clave][0] = hresult["escuela"]
- tablaplanteles[clave][1] = hresult["plner"]
- tablaplanteles[clave][2] = hresult["ubicacion"]
- tablaplanteles[clave][3] = hresult["observacion"]
-
- hresult.MoveNext
- LOOP
- tablaplanteles.SetFocus()
- ELSE
- sw = 0
- ENDIF
- END
-
-
- PUBLIC SUB abriendo2()
- tablaplanteles.Clear()
- IF conectarbase() THEN RETURN
- tablaplanteles.Columns.Count = 4
- '---------definir los campos---------------
- tablaplanteles.Columns[0].Text = "Escuela"
- 'tablaplanteles.Columns[0].Alignment = 2
- tablaplanteles.Columns[1].Text = "PlNer"
- tablaplanteles.Columns[2].Text = "Ubicación"
- tablaplanteles.Columns[3].Text = "Observación"
-
- IF combomuni.Text = "TODOS" THEN
- hresult = hconn.Exec("select * from escuelas order by escuela asc")
- ELSE
- hresultparro = hconn.Exec("select * from parroquia where codigomunicipio = '" & txtmuni.Text & "' and parroquia = '" & comboparroquia.Text & "' ")
- IF hresultparro.Count <> 0 THEN
- hresult = hconn.Exec("select * from escuelas where codigomunicipio = '" & txtmuni.Text & "' and codigoparroquia = '" & hresultparro!codigoparroquia & "' order by escuela asc")
- ELSE
- sw = 1
- ENDIF
- ENDIF
-
- IF sw = 0 THEN
- DO WHILE hresult.Available
-
- clave = hresult["codigoescuelagenerado"]
-
- tablaplanteles.Add(clave, clave)
-
- tablaplanteles[clave][0] = hresult["escuela"]
- tablaplanteles[clave][1] = hresult["plner"]
- tablaplanteles[clave][2] = hresult["ubicacion"]
- tablaplanteles[clave][3] = hresult["observacion"]
-
- hresult.MoveNext
- LOOP
- ELSE
- sw = 0
- ENDIF
- END
-
- PUBLIC SUB abriendofiltrar()
- tablaplanteles.Clear()
- IF conectarbase() THEN RETURN
- tablaplanteles.Columns.Count = 4
- '---------definir los campos---------------
- tablaplanteles.Columns[0].Text = "Escuela"
- 'tablaplanteles.Columns[0].Alignment = 2
- tablaplanteles.Columns[1].Text = "PlNer"
- tablaplanteles.Columns[2].Text = "Ubicación"
- tablaplanteles.Columns[3].Text = "Observación"
-
- IF combofiltro.Text = "Escuela" THEN
- hresult = hconn.Exec("select * from escuelas where escuela like '" & txtfiltro.Text & "%" "' and codigomunicipio = '" & txtmuni.Text & "' order by escuela asc")
- ELSE IF combofiltro.Text = "Ner" THEN
- hresult = hconn.Exec("select * from escuelas where ner like '" & (txtfiltro.Text) & "%" "' and codigomunicipio = '" & txtmuni.Text & "' order by ner asc")
- ELSE IF combofiltro.Text = "Ubicación" THEN
- hresult = hconn.Exec("select * from escuelas where ubicacion like '" & txtfiltro.Text & "%" "' and codigomunicipio = '" & txtmuni.Text & "' order by ubicacion asc")
- ELSE IF combofiltro.Text = "Observación" THEN
- hresult = hconn.Exec("select * from escuelas where observacion like '" & txtfiltro.Text & "%" "' and codigomunicipio = '" & txtmuni.Text & "' order by observacion asc")
- ENDIF
-
- DO WHILE hresult.Available
- clave = hresult["codigoescuelagenerado"]
-
- tablaplanteles.Add(clave, clave)
- tablaplanteles[clave][0] = hresult["escuela"]
- tablaplanteles[clave][1] = hresult["plner"]
- tablaplanteles[clave][2] = hresult["ubicacion"]
- tablaplanteles[clave][3] = hresult["observacion"]
-
- hresult.MoveNext
- LOOP
-
- END
-
- PUBLIC SUB totales()
- IF combomuni.Text = "TODOS" THEN
- hresultcontar = hconn.Exec("select count(*) as total from escuelas")
- lblescuelas.Text = "Total Escuelas Mcpio.:" & " " & hresultcontar!total
- lblescuelas2.Text = "Total Escuelas Parroq.:" & " " & hresultcontar!total
- ELSE
- hresultcontar = hconn.Exec("select count(*) as total from escuelas where codigomunicipio = '" & txtmuni.Text & "' ")
- IF hresultcontar.Count <> 0 THEN
- lblescuelas.Text = "Total Escuelas Mcpio.:" & " " & hresultcontar!total
- ELSE
- lblescuelas.Text = "Total Escuelas Mcpio.:" & " " & "0"
- ENDIF
- buscaregisparroquia = hconn.Exec("select * from parroquia where parroquia = '" & comboparroquia.Text & "' and codigomunicipio = '" & txtmuni.Text & "'")
- IF buscaregisparroquia.Count <> 0 THEN
- hresultparro = hconn.Exec("select count(*) as total from escuelas where codigomunicipio = '" & txtmuni.Text & "' and codigoparroquia = '" & buscaregisparroquia!codigoparroquia & "' ")
- IF hresultparro.Count <> 0 THEN
- lblescuelas2.Text = "Total Escuelas Parroq.:" & " " & hresultparro!total
- ENDIF
- ELSE
- lblescuelas2.Text = "Total Escuelas Parroq.:" & " " & "0"
- ENDIF
- ENDIF
- 'cuenta matrículas--------------------------------------------------------------
- hresultcontar = hconn.Exec("select sum(matriculainihembras) AS suma1, sum(matriculafinihembras) AS suma2, sum(matriculainivarones) AS suma3, sum(matriculafinivarones) as suma4 from matriculas where codigoescuelagenerado = '" & txtcodigoescugene.Text & "' ")
- IF hresultcontar.Count <> 0 THEN
- sumando = 0
- sumando2 = 0
- suiche = 0
- IF NOT IsNull(hresultcontar!suma1) OR hresultcontar!suma1 <> "" THEN
- sumando = hresultcontar!suma1
- ENDIF
-
- IF NOT IsNull(hresultcontar!suma2) OR hresultcontar!suma2 <> "" THEN
- sumando2 = sumando2 + hresultcontar!suma2
- suiche = 1
- ENDIF
-
- IF NOT IsNull(hresultcontar!suma3) OR hresultcontar!suma3 <> "" THEN
- sumando = sumando + hresultcontar!suma3
- ENDIF
-
- IF NOT IsNull(hresultcontar!suma4) OR hresultcontar!suma4 <> "" THEN
- sumando2 = sumando2 + hresultcontar!suma4
- suiche = 1
- ENDIF
- 'IF (NOT IsNull(hresultcontar!suma2) OR (hresultcontar!suma2)) <> "" OR (NOT IsNull(hresultcontar!suma4) OR (hresultcontar!suma4) <> "") THEN
- IF suiche = 1 THEN
- lblmatricula.Text = "Total Matrícula:" & " " & sumando2
- ELSE
- lblmatricula.Text = "Total Matrícula:" & " " & sumando
- ENDIF
- ELSE
- lblmatricula.Text = "Total Matrícula:" & " " & "0"
- ENDIF
-
- hresultcontar = hconn.Exec("select count(*) as total from personal where codigoescuelagenerado = '" & txtcodigoescugene.Text & "' ")
- IF hresultcontar.Count <> 0 THEN
- lbldocente.Text = "Total Docentes:" & " " & hresultcontar!total
- ELSE
- lbldocente.Text = "Total Docentes:" & " " & "0"
- ENDIF
- END
-
- 'cuenta personal--------------------------------
- PUBLIC SUB totalesfiltro()
- IF combomuni.Text = "TODOS" THEN
- hresultcontar = hconn.Exec("select count(*) as total from escuelas where escuela like '" & txtfiltro.Text & "%" "'")
- lblescuelas.Text = "Total Escuelas:" & " " & hresultcontar!total
- ELSE
- IF combofiltro.Text = "Escuela" THEN
- hresultcontar = hconn.Exec("select count(*) as total from escuelas where escuela like '" & txtfiltro.Text & "%" "' and codigomunicipio = '" & txtmuni.Text & "' order by escuela asc")
- ELSE IF combofiltro.Text = "Ner" THEN
- hresultcontar = hconn.Exec("select count(*) as total from escuelas where ner like '" & (txtfiltro.Text) & "%" "' and codigomunicipio = '" & txtmuni.Text & "' order by ner asc")
- ELSE IF combofiltro.Text = "Ubicación" THEN
- hresultcontar = hconn.Exec("select count(*) as total from escuelas where ubicacion like '" & txtfiltro.Text & "%" "' and codigomunicipio = '" & txtmuni.Text & "' order by ubicacion asc")
- ELSE IF combofiltro.Text = "Observación" THEN
- hresultcontar = hconn.Exec("select count(*) as total from escuelas where observacion like '" & txtfiltro.Text & "%" "' and codigomunicipio = '" & txtmuni.Text & "' order by observacion asc")
- ENDIF
- IF hresultcontar.Count <> 0 THEN
- lblescuelas.Text = "Total Escuelas:" & " " & hresultcontar!total
- ELSE
- lblescuelas.Text = "Total Escuelas:" & " " & "0"
- ENDIF
- ENDIF
- END
-
- PUBLIC SUB LIMPIAR()
-
- txtcodigomuni.Text = ""
- txtcodigoescu.Text = ""
- txtcodigoescugene.Text = ""
- txtplanteles.Text = ""
- txtubicacion.Text = ""
- 'txtner.Text = ""
- txttelefono.Text = ""
- txtcorreo.Text = ""
- txtobservacion.Text = ""
- txtcodigoparroquia.Text = ""
- txtplner.Text = ""
-
- END
-
- PRIVATE FUNCTION conectarbase() AS Boolean
-
- IF hconn <> NULL THEN RETURN FALSE
-
- hconn = NEW Connection
- 'hconn.Host = "/home/homny/programgambas/menuprobar/basedatos"
- 'hconn.Host = "/home/homny/programacióngambas/menuprobar/basedatos"
- hconn.Host = Application.Path &/ "basedatos"
- hconn.Type = "sqlite3"
- hconn.Name = "matricula"
-
- 'arch = OPEN Application.Path &/ "Data/partidos.fwc" FOR OUTPUT
- TRY hconn.Open()
- IF ERROR THEN
- hconn = NULL
- Message.Error("Error al conectar con la base de datos")
- ME.Close
- RETURN TRUE
- ENDIF
- RETURN FALSE
-
- END
-
- PRIVATE SUB cerrarconexion()
- IF hconn = NULL THEN RETURN
- hconn.Close()
- hconn = NULL
- END
-
- PUBLIC SUB bloquear()
- txtcodigomuni.ReadOnly = TRUE
- txtcodigoescu.ReadOnly = TRUE
- txtcodigoescugene.ReadOnly = TRUE
- txtplanteles.ReadOnly = TRUE
- txtubicacion.ReadOnly = TRUE
- 'txtner.ReadOnly = TRUE
- txttelefono.ReadOnly = TRUE
- txtcorreo.ReadOnly = TRUE
- txtobservacion.ReadOnly = TRUE
- END
-
- PUBLIC SUB mostrardatosparroquia()
-
- hresultparro = hconn.Exec("select * from parroquia where codigomunicipio = '" & txtmuni.Text & "' and parroquia = '" & comboparroquia.Text & "'")
- IF hresultparro.Count <> 0 THEN
- hresult = hconn.Exec("select * from escuelas where codigomunicipio = '" & txtmuni.Text & "' and codigoparroquia = '" & hresultparro!codigoparroquia & "' order by escuela asc")
- ELSE
-
- ENDIF
- IF hresult.Count = 0 THEN
- Message.Info("Debes registrar escuela en el botón nuevo")
-
- ELSE
- hresult.MoveFirst
- txtcodigomuni.Text = hresult!codigomunicipio
- txtcodigoescu.Text = hresult!codigoescuela
- txtcodigoescugene.Text = hresult!codigoescuelagenerado
- txtplanteles.Text = hresult!escuela
- txtubicacion.Text = hresult!ubicacion
- txtcodigoparroquia.Text = hresult!codigoparroquia
- txtplner.Text = hresult!plner
- txttelefono.Text = buscaregis!telefono
- txtcorreo.Text = buscaregis!correo
- txtobservacion.Text = hresult!observacion
- ENDIF
- END
-
- PUBLIC SUB mostrardatos2()
- IF tablaplanteles.Current = NULL THEN
- IF variablesglobales.activaformu = FALSE THEN
- Message.Info("No hay escuelas en la base de datos, Verifique Administrador")
- 'QUIT
- variablesglobales.var_muni = txtmuni.Text
- variablesglobales.activaformu = TRUE
- nuevo.Show
-
- ENDIF
- btnuevo.SetFocus
- ELSE
- hresult.MoveFirst
- txtcodigomuni.Text = hresult!codigomunicipio
- txtcodigoescu.Text = hresult!codigoescuela
- txtcodigoescugene.Text = hresult!codigoescuelagenerado
- txtplanteles.Text = hresult!escuela
- txtubicacion.Text = hresult!ubicacion
- txtcodigoparroquia.Text = hresult!codigoparroquia
- txtplner.Text = hresult!plner
- txttelefono.Text = buscaregis!telefono
- txtcorreo.Text = buscaregis!correo
- txtobservacion.Text = hresult!observacion
- 'tablaplanteles.Current.Selected
- ENDIF
- variablesglobales.activaformu = TRUE
- END
-
- PUBLIC SUB mostrardatos3()
- buscaregis = hconn.Exec("select * from escuelas where codigoescuelagenerado = &1", tablaplanteles.Current.Key)
- txtcodigomuni.Text = buscaregis!codigomunicipio
- txtcodigoescu.Text = buscaregis!codigoescuela
- txtcodigoescugene.Text = buscaregis!codigoescuelagenerado
- txtplanteles.Text = buscaregis!escuela
- txtubicacion.Text = buscaregis!ubicacion
- txtcodigoparroquia.Text = buscaregis!codigoparroquia
- txtplner.Text = buscaregis!plner
- txttelefono.Text = buscaregis!telefono
- txtcorreo.Text = buscaregis!correo
- txtobservacion.Text = buscaregis!observacion
- END
-
- PUBLIC SUB mostrardatosfiltro()
- IF hresult.Count = 0 THEN
- 'combofiltro.Text = valor1
- LIMPIAR
- ELSE
- hresult.MoveFirst
- txtcodigomuni.Text = hresult!codigomunicipio
- txtcodigoescu.Text = hresult!codigoescuela
- txtcodigoescugene.Text = hresult!codigoescuelagenerado
- txtplanteles.Text = hresult!escuela
- txtubicacion.Text = hresult!ubicacion
- txtcodigoparroquia.Text = buscaregis!codigoparroquia
- txtplner.Text = buscaregis!plner
- txttelefono.Text = buscaregis!telefono
- txtcorreo.Text = buscaregis!correo
- txtobservacion.Text = hresult!observacion
- ENDIF
- END
-
-
- PUBLIC SUB mostrardatos()
-
- DIM s AS Integer
- IF tablaplanteles.Current = NULL THEN RETURN
- IF tablaplanteles.Current.Selected = FALSE THEN
- Message.Info("Para eliminar, debe seleccionar un registro")
- RETURN
- ENDIF
- s = Message.Question("¿Esta seguro desea borrar registro?", "Si", "No")
-
- IF s = 1 THEN
-
- IF conectarbase() THEN RETURN
-
- buscaregis = hconn.Exec("select * from escuelas where codigoescuelasgenerado = &1", tablaplanteles.Current.Key)
-
- IF ERROR THEN
- Message.Error("Imposible borrar el registro")
- ELSE
- IF tablaplanteles.Current.Selected = FALSE THEN
- Message.Info("Para eliminar seleccione un registro")
- ELSE
- 'tablaplanteles.Current.Delete()
- ENDIF
-
- ENDIF
- 'cerrarconexion()
- ENDIF
- 'tabla.Refresh()
- 'tabla.SetFocus()
- 'tabla.Current.MoveFirst
- txtcodigomuni.Text = buscaregis!codigomunicipio
- txtcodigoescu.Text = buscaregis!codigoescu
-
- END
-
- PUBLIC SUB cargaparroquia()
- 'comboparroquia.Enabled = TRUE
- comboparroquia.Clear()
- IF conectarbase() THEN RETURN
- buscaregisparroquia = hconn.Exec("select * from parroquia")
- IF buscaregisparroquia.Count = 0 THEN
- ELSE
- 'hresultparro = hconn.Exec("select codigomunicipio, parroquia from parroquia group by parroquia having count(parroquia) > 0 and codigomunicipio = '" & txtmuni.text & "' ")
- hresultparro = hconn.Exec("select codigomunicipio, parroquia from parroquia group by parroquia having count(parroquia) > 0 ")
- WHILE hresultparro.Available
- comboparroquia.Add(hresultparro!parroquia)
- hresultparro.MoveNext
- WEND
- 'comboparroquia.ReadOnly = FALSE
- 'comboparroquia.Text = comboparroquia.List(0)
- ENDIF
- END
-
- PUBLIC SUB cargaparroquia2()
- comboparroquia.Clear()
- IF conectarbase() THEN RETURN
- buscaregisparroquia = hconn.Exec("select * from parroquia where codigomunicipio = '" & txtmuni.Text & "' ")
- IF buscaregisparroquia.Count = 0 THEN
- Message.Info("Municipio sin parroquia, registre en botón nuevo")
- desactivabotonestotal
- btnuevo.Enabled = TRUE
- ELSE
- activabotones
- hresultparro = hconn.Exec("select codigomunicipio, parroquia from parroquia group by parroquia having count(parroquia) > 0 and codigomunicipio = '" & txtmuni.Text & "' ")
- WHILE hresultparro.Available
- comboparroquia.Add(hresultparro!parroquia)
- hresultparro.MoveNext
- WEND
- 'comboparroquia.ReadOnly = FALSE
- 'comboparroquia.Text = comboparroquia.List(0)
- ENDIF
-
- END
-
- PUBLIC SUB Form_Open()
-
- ME.Center
- sw = 0
- variablesglobales.sw2 = 0
- vercodimuni
- cargaparroquia2
- abriendo
- 'totales
- bloquear
- variablesglobales.activaformu = FALSE
- variablesglobales.var_matriparro = FALSE
- END
-
- PUBLIC SUB Form_Activate()
- mostrardatos2
- totales
- bloquear
- vercodiparroquia
- 'IF variablesglobales.sw3 = 0 AND variablesglobales.sw2 = 0 THEN
- IF nuevo.Enabled = FALSE
- cargaparroquia2
- ELSE
- 'variablesglobales.sw3 = 1
- ENDIF
- IF variablesglobales.var_matriparro = TRUE THEN
- comboparroquia.Text = textoparroquia
- variablesglobales.var_matriparro = FALSE
- ENDIF
- END
-
-
- PUBLIC SUB vercodimuni()
-
- IF combomuni.Text = "ANDRÉS ELOY BLANCO" THEN
- txtmuni.Text = "01"
- ELSE IF combomuni.Text = "ANDRÉS MATA" THEN
- txtmuni.Text = "02"
- ELSE IF combomuni.Text = "ARISMENDI" THEN
- txtmuni.Text = "03"
- ELSE IF combomuni.Text = "BENÍTEZ" THEN
- txtmuni.Text = "04"
- ELSE IF combomuni.Text = "BERMÚDEZ" THEN
- txtmuni.Text = "05"
- ELSE IF combomuni.Text = "BOLÍVAR" THEN
- txtmuni.Text = "06"
- ELSE IF combomuni.Text = "CAJIGAL" THEN
- txtmuni.Text = "07"
- ELSE IF combomuni.Text = "CRUZ SALMERÓN ACOSTA" THEN
- txtmuni.Text = "08"
- ELSE IF combomuni.Text = "LIBERTADOR" THEN
- txtmuni.Text = "09"
- ELSE IF combomuni.Text = "MARIÑO" THEN
- txtmuni.Text = "10"
- ELSE IF combomuni.Text = "MEJIA" THEN
- txtmuni.Text = "11"
- ELSE IF combomuni.Text = "MONTES" THEN
- txtmuni.Text = "12"
- ELSE IF combomuni.Text = "RIBERO" THEN
- txtmuni.Text = "13"
- ELSE IF combomuni.Text = "SUCRE" THEN
- txtmuni.Text = "14"
- ELSE IF combomuni.Text = "VALDEZ" THEN
- txtmuni.Text = "15"
- ENDIF
- END
-
- PUBLIC SUB vercodiparroquia()
-
- buscaregisparroquia = hconn.Exec("select * from parroquia")
- IF buscaregisparroquia.Count = 0 THEN
-
- 'Message.Question("Debes Registrar Parroquia en botón nuevo")
- desactivabotonestotal
- btnuevo.Enabled = TRUE
- tablaplanteles.Clear()
- LIMPIAR
- combomuni.Enabled = TRUE
- comboparroquia.Enabled = FALSE
-
- ELSE
- btmodificar.Enabled = TRUE
- btelimina.Enabled = TRUE
- btmatricula.Enabled = TRUE
- btpersonal.Enabled = TRUE
-
- ENDIF
- END
-
- PUBLIC SUB combomuni_Click()
- vercodimuni
- cargaparroquia2
- LIMPIAR
- abriendo
- totales
- combofiltro.Visible = FALSE
- txtfiltro.Visible = FALSE
- txtfiltro.Text = ""
- tablaplanteles.Refresh
-
- bloquear
- END
-
- PUBLIC SUB tablaplanteles_Click()
-
- mostrardatos3
- totales
-
- END
-
- PUBLIC SUB btsalida_Click()
-
- cerrarconexion
- Planteles.Close
-
- END
-
- PUBLIC SUB desbloquea()
- txtplanteles.ReadOnly = FALSE
- txtubicacion.ReadOnly = FALSE
- txttelefono.ReadOnly = FALSE
- txtcorreo.ReadOnly = FALSE
- txtobservacion.ReadOnly = FALSE
- END
-
-
- PUBLIC SUB btmodificar_Click()
- desactivabotones
- plantel = txtplanteles.Text
- ubicacion = txtubicacion.Text
- telefono = txttelefono.Text
- correo = txtcorreo.Text
- observacion = txtobservacion.Text
- desbloquea
- txtplanteles.SetFocus
- END
-
- PUBLIC SUB desactivafiltro()
- IF combofiltro.Visible = TRUE THEN
- combofiltro.Enabled = FALSE
- txtfiltro.Enabled = FALSE
- ELSE
- ENDIF
- END
-
- PUBLIC SUB desactivabotonestotal()
- btaceptar.Enabled = FALSE
- btcancelar.Enabled = FALSE
- btmodificar.Enabled = FALSE
- btelimina.Enabled = FALSE
- btnuevo.Enabled = FALSE
- btmatricula.Enabled = FALSE
- btpersonal.Enabled = FALSE
- btimprimir.Enabled = FALSE
- btfiltrar.Enabled = FALSE
- desactivafiltro
- END
-
- PUBLIC SUB desactivabotones()
- btaceptar.Enabled = TRUE
- btcancelar.Enabled = TRUE
- btmodificar.Enabled = FALSE
- btelimina.Enabled = FALSE
- btnuevo.Enabled = FALSE
- btmatricula.Enabled = FALSE
- btpersonal.Enabled = FALSE
- btimprimir.Enabled = FALSE
- btfiltrar.Enabled = FALSE
- desactivafiltro
- END
-
- PUBLIC SUB activabotones()
- btaceptar.Enabled = FALSE
- btcancelar.Enabled = FALSE
- btmodificar.Enabled = TRUE
- btelimina.Enabled = TRUE
- btnuevo.Enabled = TRUE
- btmatricula.Enabled = TRUE
- btpersonal.Enabled = TRUE
- btimprimir.Enabled = TRUE
- btfiltrar.Enabled = TRUE
- IF combofiltro.Enabled = FALSE THEN
- combofiltro.Enabled = TRUE
- txtfiltro.Enabled = TRUE
- ENDIF
- END
-
- PUBLIC SUB cancelando()
- activabotones
- txtplanteles.Text = plantel
- txtubicacion.Text = ubicacion
- txttelefono.Text = telefono
- txtcorreo.Text = correo
- txtobservacion.Text = observacion
- bloquear
- btmodificar.SetFocus
- END
-
- PUBLIC SUB cancelando2()
- activabotones
- bloquear
- btmodificar.SetFocus
- END
-
- PUBLIC SUB btcancelar_Click()
- cancelando
- END
-
- PUBLIC SUB txtplanteles_Change()
- txtplanteles.Text = UCase(txtplanteles.Text)
- END
-
- PUBLIC SUB txtplanteles_KeyPress()
-
- IF Key.Code = Key.Enter THEN
- IF txtplanteles.Text = "" THEN
- txtplanteles.SetFocus
- ELSE
- txtubicacion.SetFocus
- ENDIF
- ENDIF
-
- END
-
- PUBLIC SUB txtubicacion_Change()
- txtubicacion.Text = UCase(txtubicacion.Text)
- END
-
- PUBLIC SUB txtubicacion_KeyPress()
- IF Key.Code = Key.Enter THEN
- ' txtner.SetFocus
- ENDIF
- END
-
- PUBLIC SUB txtner_KeyPress()
-
- IF Key.Code = Key.Enter OR Key.Code = 65293 THEN
- txttelefono.SetFocus
- ELSE
- Solo_Numeros(Key.Code)
- ENDIF
-
- END
-
- PUBLIC SUB txtobservacion_Change()
- txtobservacion.Text = UCase(txtobservacion.Text)
- END
-
- PUBLIC SUB txtobservacion_KeyPress()
- IF Key.Code = Key.Enter OR Key.Code = 65293 THEN
- btaceptar.SetFocus
- ENDIF
- END
-
- PUBLIC SUB btaceptar_Click()
- IF txtplanteles.Text = "" THEN
- Message.Info("Debe registrar nombre escuela")
- txtplanteles.Text = plantel
- txtplanteles.SetFocus
- ELSE
- s = Message.Question("¿Realmente desea modificar datos ?", "Si", "No")
- IF s = 1 THEN
- IF txtplanteles.Text = "" THEN
- Message.Info("Debe llenar la casilla planteles")
- txtplanteles.SetFocus
- ELSE
- buscaregis = hconn.Edit("escuelas", "codigoescuelagenerado = '" & txtcodigoescugene.Text & "' ")
- buscaregis["codigomunicipio"] = txtcodigomuni.Text
- buscaregis["codigoescuela"] = txtcodigoescu.Text
- buscaregis["codigoescuelagenerado"] = txtcodigoescugene.Text
- buscaregis["escuela"] = txtplanteles.Text
- buscaregis["ubicacion"] = txtubicacion.Text
- buscaregis["plner"] = txtplner.Text
- buscaregis["telefono"] = txttelefono.Text
- buscaregis["correo"] = txtcorreo.Text
- buscaregis["observacion"] = txtobservacion.Text
- buscaregis.Update
- abriendo2
- cancelando2
- ENDIF
- ELSE
- ENDIF
- ENDIF
- END
-
- PUBLIC SUB btelimina_Click()
-
- DIM s AS Integer
- IF tablaplanteles.Current = NULL THEN RETURN
- IF tablaplanteles.Current.Selected = FALSE THEN
- Message.Info("Para eliminar, debe seleccionar un registro")
- RETURN
- ENDIF
- s = Message.Question("¿Esta seguro desea borrar registro?", "Si", "No")
-
- IF s = 1 THEN
-
- TRY hconn.Exec("delete from escuelas where codigoescuelagenerado =&1", tablaplanteles.Current.Key)
- IF ERROR THEN
- Message.Error("Imposible borrar el registro")
- ELSE
- IF tablaplanteles.Current.Selected = FALSE THEN
- Message.Info("Para eliminar seleccione un registro")
- ELSE
- tablaplanteles.Current.Delete()
- abriendo
- ENDIF
-
- ENDIF
- ENDIF
-
- END
-
- PUBLIC SUB btnuevo_Click()
- IF combomuni.Text = "TODOS" THEN
- Message.Warning("Debe seleccionar un Municipio")
- combomuni.SetFocus
- ELSE
- variablesglobales.var_muni = txtmuni.Text
- variablesglobales.activaformu = TRUE
- variablesglobales.sw2 = 1
- nuevo.Show()
- ENDIF
- END
-
- PUBLIC SUB btfiltrar_Click()
- IF combofiltro.Visible = FALSE THEN
- abriendo
- combofiltro.Visible = TRUE
- txtfiltro.Visible = TRUE
- combofiltro.Text = "Escuela"
- txtfiltro.SetFocus
- ELSE
- abriendo
- combofiltro.Visible = FALSE
- txtfiltro.Visible = FALSE
- ENDIF
- END
-
- PUBLIC SUB txtfiltro_Change()
- totalesfiltro
- IF combofiltro.Text = "Escuela" THEN
- txtfiltro.Text = UCase(txtfiltro.Text)
- abriendofiltrar
- mostrardatosfiltro
- ELSE IF combofiltro.Text = "plNer" THEN
- abriendofiltrar
- mostrardatosfiltro
- ELSE IF combofiltro.Text = "Ubicación" THEN
- txtfiltro.Text = UCase(txtfiltro.Text)
- abriendofiltrar
- mostrardatosfiltro
- ELSE IF combofiltro.Text = "Observación" THEN
- txtfiltro.Text = UCase(txtfiltro.Text)
- abriendofiltrar
- mostrardatosfiltro
- ENDIF
- END
-
- PUBLIC SUB combofiltro_Click()
- abriendo
- valor1 = combofiltro.Text
- txtfiltro.Text = ""
- txtfiltro.SetFocus
- END
-
- PUBLIC SUB txttelefono_Change()
- 'CInt(txttelefono.Text) 'Convierte el numero en entero
- 'CATCH
- 'txttelefono.Text = Mid$(txttelefono.Text, 1, -1) 'Si no es un numero borra el caracter
- 'STOP EVENT
- END
-
- PUBLIC SUB txttelefono_KeyPress()
- IF Key.Code = Key.Enter OR Key.Code = 65293 THEN
- txtcorreo.SetFocus
- ELSE
- Solo_Numerostelefono(Key.Code)
- ENDIF
- END
-
- PUBLIC SUB txtcorreo_KeyPress()
- IF Key.Code = Key.Enter THEN
- txtobservacion.SetFocus
- ENDIF
- END
-
- PUBLIC SUB txtcorreo_Change()
- txtcorreo.Text = LCase(txtcorreo.Text)
- END
-
-
- PUBLIC SUB txtfiltro_KeyPress()
-
- IF combofiltro.Text = "PlNer" THEN
- IF Key.Code = Key.Enter OR Key.Code = 65293 THEN
- ELSE
- Solo_Numeros(Key.Code)
- ENDIF
- ENDIF
-
- END
-
- PUBLIC SUB btmatricula_Click()
- variablesglobales.activaformu = TRUE
- variablesglobales.var_matriparro = TRUE
- textoparroquia = comboparroquia.Text
- matricula.Show()
-
- END
-
- PRIVATE FUNCTION Solo_Numeros(KeyTecla AS Integer)
-
- IF KeyTecla >= 48 AND KeyTecla <= 57 OR KeyTecla >= 65456 AND KeyTecla <= 65465 OR KeyTecla = 65288 OR KeyTecla = 65293 OR KeyTecla = 65421 THEN
- ELSE
- STOP EVENT
- END IF
-
- END
-
- PRIVATE FUNCTION Solo_Numerostelefono(KeyTecla AS Integer)
-
- IF KeyTecla >= 48 AND KeyTecla <= 57 OR KeyTecla >= 65456 AND KeyTecla <= 65465 OR KeyTecla = 65288 OR KeyTecla = 65293 OR KeyTecla = 65421 OR KeyTecla = 45 OR KeyTecla = 65453 OR KeyTecla = 65455 OR KeyTecla = 32 THEN
- ELSE
- STOP EVENT
- END IF
-
- END
-
- PUBLIC SUB btpersonal_Click()
-
- personal.Show()
-
- END
-
- PUBLIC SUB comboparroquia_Click()
- IF variablesglobales.sw2 = 0 THEN
- abriendo2
- mostrardatosparroquia
- totales
- ENDIF
- END
-
-
- PUBLIC SUB btimprimir_Click()
-
-
- END
-
|
#3 Domingo, 15 Abril 2012, 21:51 |
|
|
willicab
Aprendiz
Registrado: Septiembre 2009
Mensajes: 64
Edad: 39 Ubicación: Caracas, Distrito Capital
|
Re: Error Al Importar Proyecto De Gambas 2 A Gambas 3.1
Hola, acabo de probar convertir el código y n me ha dado problemas, tal vez el problema es del formulario, pasa el archivo .form para comprobar si es eso
|
#4 Domingo, 15 Abril 2012, 22:52 |
|
|
Shell
Analista Programador
Registrado: Marzo 2010
Mensajes: 5278
Edad: 53 Ubicación: Al otro lado de la pantalla
|
Re: Error Al Importar Proyecto De Gambas 2 A Gambas 3.1
Entonces.
Comentabais de que había cierto problema de "incompatibilidad" dentro de la propia versión 3 con sus derivadas. 3.1 y las futuras. ¿No ?.
Si fuese de la 2 al convertir a la 3.1 ya seria pedir demasiado.Esto quizás se pierda fácilmente.
Como aun tengo la 2 y uso poco la 3.0.(No tengo inconvenientes en usar una u otra).
Me gustaría tener cierta compatibilidad aunque haya que retocar algo luego.
Por ahora deberían convertirse de la 2 a la 3.1 sin muchos problemas.Supongo.
Saludos.
=================== Gambas Básico
"No es un bug, es una característica no documentada"
|
#5 Lunes, 16 Abril 2012, 08:55 |
|
|
jousseph
jousseph germaine celis zambrano
Analista Programador
Registrado: Julio 2010
Mensajes: 434
Edad: 38 Ubicación: Tachira
|
Re: Error Al Importar Proyecto De Gambas 2 A Gambas 3.1
Holas quiero comentarles que hice 2 pruebas de convertir mi proyecto de gambas 2 a gambas 3 y noto que sucede ese error es en linux canaima instalado en forma tar.bz2 cuando probe en un ubuntu con el gambas 3 instalado desde el script si me convirtio toooodo el proyecto de gambas 2 a gambas 3 sin problemas pienso que es el gambas del tar.bz.
|
#6 Domingo, 26 Agosto 2012, 23:30 |
|
|
jsbsan
Analista Programador
Registrado: Septiembre 2009
Mensajes: 4175
Edad: 51 Ubicación: dos hermanas, sevilla
|
Re: Error Al Importar Proyecto De Gambas 2 A Gambas 3.1
jousseph:
Citar: el gambas 3 instalado desde el script
Cuando instalas con el script de jguardon, estas instalando la ultima version, SVN, en pruebas. Que no es la misma que descargas desde la pagina de gambas.
Seguramente esta version SVN tenga ya corregido algunos bugs, y por eso no te da problemas...
Saludos
última edición por jsbsan el Lunes, 27 Agosto 2012, 00:08; editado 2 veces
|
#7 Lunes, 27 Agosto 2012, 00:07 |
|
|
|
Temas parecidos
Temas parecidos
|
Página 1 de 1
|
Usuarios navegando en este tema: 0 registrados, 0 ocultos y 1 invitado Usuarios registrados conectados: Ninguno
|
No puede crear mensajes No puede responder temas No puede editar sus mensajes No puede borrar sus mensajes No puede votar en encuestas No puede adjuntar archivos Puede descargar archivos No puede publicar eventos en el calendario
|
|
|
|
|