FoxPro/Visual FoxPro - problema en funcion

 
Vista:
sin imagen de perfil

problema en funcion

Publicado por eduardo (139 intervenciones) el 18/07/2007 16:45:00
HOLA:
TENGO ESTA FUNCION ,EN LA CUAL ESTOY TRATANDO DE OBTENER EL TOTAL DE PAGINAS DE UN REPORTE:

public totalp
set step on
set defa to e:\prueba //donde esta ubicado el reporte llamado prueba1
totalp=totalpag("prueba1")
wait wind totalp

function totalpag
parameter nreporte
*ACA HABIA PUESTO UN WAIT WIND PARA VER EL CONTENIDO DE NREPORTE
*Y ME TRAE EL NOMBRE CORRECTO (PRUEBA1)

public cpag
set defa to e:\prueba *PUSE ESTO DE VUELTA POR SI ESE ERA EL PROBLEMA
report form nreporte noconsole
cpag=_pageno
return cpag
EL PROBLEMA LO TENGO CUANDO LLEGA A LA LINEA DEL REPORT FORM
DONDE ME PONE QUE NO EXISTE EL ARCHIVO PRUEBA1
GRACIAS POR LA AYUDA
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:problema en funcion

Publicado por enrique (1041 intervenciones) el 18/07/2007 18:15:11
report form (nreporte) noconsole

nreporte es una variable y en report form tenes que poner el nombre del reporte entre parentesis para que tome el contenido de la variable
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar