Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lint-like tool for VFP?
Message
From
23/03/2014 05:55:56
 
 
To
21/03/2014 14:42:52
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01597085
Message ID:
01597137
Views:
94
Likes (1)
>Does anybody know of any software for VFP that performs a similar function as "lint" did for C code?
>
>In general looking for something that could warn me of possible problems such as undefined variable, function, procedure, property, method, table, field, etc. Sure, one could hand-check each module, but it is not only boring and tedious, but because of it it's likely you'll miss stuff..
Hi,

There is this parslocals.prg which does exactly that.
Just write your program / procedure , declare your variables as you like and run 'parselocals' it will show you exactly which variables are found in your procedure and not declared. So any mistypes of variables are listed.
A likewise procedure is part of Thor, however I do find parselocals more handy, and before all more user friendly than the version in Thor.
The procedure is in the atachment and what is also best it installes itself into your VFP menu so it can be used either via the Menu or you can define a shortcut-Key in your startup.prg

Regards,
Koen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform