General information
Category:
Coding, syntax & commands
>Is there an easy way to search for text in a .prg? I need to know if a specific procedure exists in a .prg before I try to run it.
>
>For instance, I need to know if 'procedure ix_insured' is in tblstruc.prg. The tblstruc.prg is included in the project.
>
>TIA,
>Tracy
>:0)
In addition to what other's have said:
If you need to do that at runtime and the prg is not incorporated in a project, you could do a FileToStr(), ALINES() and parse each row in the array for PROCEDURE myProcedureName prior to a comment.
If you have the opportunity to create classes rather than PRGs, it's even simpler to test using the PEMStatus() function.
Jay
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only