Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help in LINENO()
Message
 
 
À
01/02/2001 22:29:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00470587
Message ID:
00471603
Vues:
44
>Hi,
>
>Thank a lot for the advise. I tried out the articles method but didn't
>work. So I will contact him personally for advise. I follow the instruction
>by replacing all the forms and class library methods with '*' with code below
>If I done any mistakes or misunderstand the article, please comment and advise.
>Thank you
>
>
>? 'Program in process, please wait...'
>ProcessFile('*.scx')
>ProcessFile('*.vcx')
>? 'Progress completed, please recompile your program again'
>? 'Press any key to exit.'
>
>RETURN
>
>PROCEDURE ProcessFile(pvFileExt)
>
>	LOCAL lNo, lTotalFiles, lFileName
>
>	lTotalFiles = ADIR(lTmpArray,pvFileExt)
>	
>	FOR lNo = 1 TO lTotalFiles
>
>		lFileName = ALLT(lTmpArray(lNo,1))
>		USE (lFileName) IN 0 EXCLUSIVE
>		SELECT(lFileName)
>			<b>REPLACE  METHODS WITH '*' for !empty(Methods)</b>
>*			FLUSH
>			PACK
>		USE IN (lFileName)
>
>	ENDFOR
>	
>	RELEASE lTmpArray
>	
>ENDPROC
>
>
>

Virusim,

I changed one line in your program (see in bold). Also, you should NOT use recompile option, you should leave Include DebugInfo checked, and, of course, you should keep the copy of all your classes and forms in the safe place.

At least, this is how I understood Walter's advice.

>>That's the drawback to needing line number information. Check out this message from Walter Meester last quarter. His tip may help you. I haven't tried it so I make no promises.
>>
>>>Hi,
>>>
>>>Thank a lot for your advise. Now, I can see my error code.
>>>But my file size get big. So, any way to had the same function
>>>without having the debug info. Please advise and comment.
>>>
>>>
>>>>You didn't say whether this occurs in the development environment or the run-time (EXE). If it only happens in the EXE, then the problem is you need to specify that you want to include Debug information when you create your EXE (from the VFP main menu, select Project - Project Info and check the Debug Info checkbox). Otherwise, VFP doesn't include the necesarry informatino in the EXE to track line numbers so it always returns 0.
>>>>
>>>>HTH.
>>>>
>>*snip*
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform