FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Warning W0001 Ambiguous reference Harbour 3.1
Posts: 1078
Joined: Thu Sep 27, 2007 03:47 PM
Warning W0001 Ambiguous reference Harbour 3.1
Posted: Tue Feb 28, 2012 04:16 PM
Saludos Al Forum

Ya Logre compilar mi proyecto el Harbour 3.1 ya que lo tenia en xHArbour.

Mi pretunta es la Siguiente.

Porque Genera este error. a pesar que compilar y genera el ejecutable bien

pxp0014.prg(61) Warning W0001 Ambiguous reference 'OAPP"
pxp0014.prg(78) Warning W0001 Ambiguous reference 'OAPP"
pxp0014.prg(80) Warning W0001 Ambiguous reference 'OAPP"

En todos lo programar me pasa esto.

Code (fw): Select all Collapse
   oP14:regtablas := {"kubicac"}
   oP14:reggetd := {"get_codubi","get_nombre"}
   oP14:MatValid[5] := "oP14:reg_nav0001()"
   oP14:cSistema  := "0014.Registro Ubicaciones "
   oP14:P_TICO:="C";oP14:P_MOD := "PXP0014_1";oP14:P_MOD1:="PROG_14";oP14:P_XLS := "xls0014.xls"

Linea 61
   oP14:P_NBROW := "BROW_LISTA";oP14:P_TIBROW := oApp:X_TIPBROW;oP14:P_OPMENU:= "2"          oP14:P_TRAMBROW := 1;oP14:P_FONBROIMA := " ";oP14:P_PORDEFI := " ";oP14:P_CONDVEN := 0
   oP14:cDatbus1 := "codubi"
   oP14:cllave1 := "m_codubi"
..
LInea 78
  DEFINE DIALOG oP14:oDlg01 RESOURCE "GENERAL" TITLE OemToAnsi(oP14:cSistema) OF oApp:oWndMain STYLE nOR(WS_MINIMIZEBOX)



el oApp lo tengo definido en el Programa Principal


Code (fw): Select all Collapse
MEMVAR oApp
Function Main()
Local oIco, oBmp, oBrush,oLogo1, oCur, oLogo2,oPen, oPen_,oImageList,oText,oSay,oFont,oBrush99,oFont3, xfind
Local xAltKey,oPopm1 
local a,b,i,opx

PUBLIC  oApp := TMENUINI():New()
Ruben Dario Gonzalez
Cali-Colombia
rubendariogd@hotmail.com - rubendariogd@gmail.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Pregunta Sobre Error al compilar Harbour 3.1
Posted: Tue Feb 28, 2012 07:24 PM

Ruben,

Tienes que añadir esta línea al principio de los PRGs en los que usas oApp

MEMVAR oApp

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1078
Joined: Thu Sep 27, 2007 03:47 PM
Re: Warning W0001 Ambiguous reference Harbour 3.1
Posted: Tue Feb 28, 2012 10:03 PM

Gracias Maestro.. Funciono

Ruben Dario Gonzalez
Cali-Colombia
rubendariogd@hotmail.com - rubendariogd@gmail.com

Continue the discussion