Está en la página 1de 4

GuadeMigracinOpenDCL

A continuacin se muestran algunos tips para ayudarle a migrar sus proyectos anteriores de
OpenDCLuObjectDCL3.0alaltimaversindeOpenDCL.

NingunadelasfuncionesODCLfunciona.
(odcl_loadproject "miProyecto")
Problema:
; error: no function definition: ODCL_LOADPROJECT
Solucin: Hacerunabsquedaglobalde"odcl_"yremplazarlacon"dcl_"
Motivo: ParaevitarconflictosconnombresdeObjectDCL3.0predecesorde
OpenDCL.
Cambioocurridoen: V4.0

Problema: LasfuncionesODCLyanoaceptanargumentosnulosonull.
(dcl_Form_IsActive MyProj_MyForm)
; error: ADS request error
Solucin: Utilice(dcl_project_load "miProyecto")sinincluir"IsActive".Si
yaestacargadonadaocurrir.
Motivo: Estecambiofunecesarioparamejorarlosmensajesdeerror.
Cambioocurridoen: V4.0

Problema: Error:Tipodeargumentonovlido
Funcin:dcl_ListBox_GetCurSel
Argumento:0
Nosepuedellamar(dcl_ListBox_GetCurSel)encontrolListade
Opciones.
Solucin: Usar(dcl_OptionList_GetCurSel)enlugardelanterior.
Motivo: N/A
Cambioocurridoen: V5.0

Problema: Error:Demasiadosargumentos
Funcin:dcl_messagebox
Argumento:4
Solucin: El4toargumento{ShowHelpButton}ahoraesperaunvalorBooleano,
noEntero.
Motivo: N/A
Cambioocurridoen: V5.0

Problema: (dcl_ListView_Clear)yanolimpialacolumnadeinformacin.

Solucin: Usar(dcl_ListView_DeleteColumns)enlugardelanterior.
Motivo: N/A
Cambioocurridoen: V5.0

Problema: Losargumentospara(dcl_ListView_FillList)hancambiado.
Solucin: (dcl_ListView_FillList<CONTROL>comoListadeListascomo
((ItemLabel[comoCadena]{ItemImageIndex[como
Entero]}{Column1Label[comoCadena]}{Column1ImageIndex[como
Entero]}...)...))
Motivo: N/A
Cambioocurridoen: V5.0

Problema: Losargumentospara(dcl_ListView_AddColumns)han
cambiado.
Solucin: (dcl_ListView_AddColumns<CONTROL>NuevasColumnas[como
ListadeListascomo((Caption[comoCadena]{Justification[como
Entero]}{ColumnWidth[comoEntero
Largo]}{ColumnImageIndex[comoEntero]})...)])
Motivo: N/A
Cambioocurridoen: V5.0

Problema: Losargumentospara(dcl_ListView_AddItem)hancambiado.
Solucin: (dcl_ListView_AddItem<CONTROL>{ImageIndex[como
Entero]}ItemLabel[comoCadena]{Column1Label[como
Cadena]Column2Label[comoCadena]}...)
Motivo: N/A
Cambioocurridoen: V5.0

Problema: ElargumentoEtiquetaen(dcl_ListView_SetItemText)se
hamovido.
Solucin: (dcl_ListView_SetItemText<CONTROL>Elemeto[comoEntero
Largo]{Column[comoEnteroLargo]}Etiqueta[comoCadena])
Motivo: N/A
Cambioocurridoen: V5.0

Problema: CasillasdeVerificacinyBotonesdeOpcinyanoregresanvalores
Booleanos.(if (dcl_Control_GetValue
MyProj_Form1_CheckBox1) (DoStuff) )

Solucin: Cambiesucdigoaalgoparecidoa:

(if (= 1 (dcl_Control_GetValue
MyProj_Form1_CheckBox1))
(DoStuff)
)
Otambin
(if (> 0 (dcl_Control_GetValue
MyProj_Form1_CheckBox1))
(DoStuff)
)

Motivo: LasCasillasdeVerificacinahorasoportantresvaloresEnteros
(0=Nochecado,1=Checado,2=Indeterminado).



Cambioocurridoen: V5.0

Problema: (dcl_Control_SetValue)seesperabaunEntero

Solucin: Cambiar(dcl_Control_SetValue MyProj_Form1_CheckBox1 T)


A(dcl_Control_SetValue MyProj_Form1_CheckBox1 1)
Motivo: N/A
Cambioocurridoen: V5.0

CambiosSugeridos.

Problema: (dcl_loadproject)esunafuncinobsoleta

Solucin: Hagaunabsquedaglobalpara"dcl_loadproject"yreemplacelacon"
dcl_project_load"

Motivo: Paraagregarnuevafuncionalidad

Cambioocurridoen: V4.0

Problema: Laspropiedades(NombreVar)oNombreSimboloLispsonmatenidas
unicamenteparasoportarcdigolegacyypermitirquesiga
funcionando.

Solucin: OpenDCLahoraautomaticamentedeterminaycontrolaelnombreen
tiempodeejecucindeadelapropiedad(Nombre).
p.e.MyProj_Form1_Control1.Serecomiendaremover
(VarName)pormediodeHerramientas>LimpiarNombresSimbolo
LispenlaBarradeMendeOpenDCLStudio.Advertencia,estopuede
romperoseccionarsucdigoexistentedeAutoLISPytendraque
actualizarloalosnombrespordefault.

Motivo: Paraevitarlaconfucindetenerquemantenerdospropiedadesde
nombre.

Cambioocurridoen: V4.0

Siencuentraotrosproblemasocambios,porfavorenviaremaila:barry.ralphs@gmail.com

TraduccinalEspaol(Mxico)por:CarlosE.Mrquez.email:cemvlegar@hotmail.com

También podría gustarte