General information
Category:
Coding, syntax & commands
I agree. I take it to the extreme, though, and advocate getting rid of constants altogether. I'd much rather see a short comment than a constant whose value I need to go look up since it won't show up in the debugger.
Michelle
>Hey all.
>
>Maybe this is rhetorical.
>
>But why do almost all VFP code examples insist on using a #DEFINE variable for MESSAGEBOXs? For example,
>
>=MESSAGEBOX("You screwed up!",MB_ICONSTOP,"Error!")
>
>Seems to me this is counterproductive. Why not just use the doggone number 16? Otherwise, you have to remember to do the #DEFINE or attach the .H file.
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