Mike Yearwood
Toronto, Ontario, Canada
General information
Category:
Coding, syntax & commands
Environment versions
Network:
Windows 2008 Server
>>Hey all
>>
>>I am trying to execute a piece of code only at design time, never at runtime. I thought I could do a compiler directive. Something like
>>
>>#IF _vfp.startmode=0
>>
>>Of course, that will never work. Compilation is always at startmode 0, so it will be a hit in the exe. I guess it is possible to drive this by checking for the existence of a file? If the file is present, exclude the design time code?
>>
>>Thanks
>
>Will the Version(2) function work for you?
That won't do it either. In fact, I drew a blank earlier trying to remember that trick. Version is not what comes to mind when I'm trying to figure out if I'm in the IDE or not. ;)
Previous
Next
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