by lafug » Fri Feb 24, 2006 1:52 am
Antonio:
Probé compilando con HARBOUR el tutor07.prg que viene con FWH y también ocurre el mismo error
aqui está el codigo y el error a continuacion
function Customers()
local oDlg
local cNombre := ""
local cDireccion := ""
local getNombre, getDireccion
if ! File( "clientes.dbf" )
DbCreate( "Clientes.dbf", { { "Nombre", "C", 40, 0 },;
{ "Direccion", "C", 50, 0 },;
{ "Telefono", "C", 12, 0 },;
{ "Edad", "N", 2, 0 },;
{ "Productos", "C", 10, 0 },;
{ "Nivel", "N", 2, 0 } } )
endif
USE Clientes
if RecCount() == 0
APPEND BLANK
endif
INDEX ON Clientes->Nombre TO CliNombr
SET INDEX TO CliNombr
clientes->(dbclosearea())
USE CLIENTES NEW SHARED ALIAS CLI
linea 98--> SET INDEX TO CLINOMBR
Application
===========
Path and name: C:\FWH\SAMPLES\tutor07.exe (32 bits)
Size: 1,022,976 bytes
Time from start: 0 hours 0 mins 5 secs
Error occurred at: 02/23/06, 22:23:41
Error description: Error BASE/1002 Alias does not exist: CLIENTES
Stack Calls
===========
Called from: => ORDLISTADD(0)
Called from: => CUSTOMERS(98)
Called from: => (b)BUILDMENU(46)
Called from: => TMENU:COMMAND(0)
Called from: => TWINDOW:COMMAND(0)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: => _FWH(0)
Called from: => WINRUN(0)
Called from: => TWINDOW:ACTIVATE(0)
Called from: => MAIN(18)
SALUDOS
Luis Alfonso Fuentes Guerrero
FWH 11.06 xHarbour 1.2.1 BCC55 WorkShop