Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create cursor with Memo field causes problem
Message
De
26/02/2016 14:54:11
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01632164
Message ID:
01632167
Vues:
46
>Hi,
>
>I have a code in one of the programs that, on error, prints the error report. Here is simplified code:
>
>
>CREATE CURSOR PROBALERT ( PROB_DESCR c(70), ERR_MSG c(250) ) 
>		
>INSERT INTO PROBALERT ( PROB_DESCR, ERR_MSG ) VALUES ;
>	( "Problem!", ALLTRIM(pcErrorMsg) )
>
>SELECT PROBALERT	
>report form Problem_Report NEXT 1 NOCONSOLE to printer
>
>
>The problem was that the field ERR_MSG c(250) was not big enough to hold the entire error message, so I changed the field type to memo.
>The code, otherwise, is exactly the same
>
>CREATE CURSOR PROBALERT ( PROB_DESCR c(70), ERR_MSG M )  
>		
>INSERT INTO PROBALERT ( PROB_DESCR, ERR_MSG ) VALUES ;
>	( "Problem!", ALLTRIM(pcErrorMsg) )
>
>SELECT PROBALERT	
>report form Problem_Report NEXT 1 NOCONSOLE to printer
>
>
>The problem is that after making the field ERR_MSG M the report prints on 100s and 100s pages, repeating the same page over and over.
>
>What am I missing?

Could you possibly have a table in your report's dataenvironment?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform