Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7712 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I don't see anyway to do this, but best practices do direct us to comment our code for future reference, so is there anyway to do this in FM? Other than seperate documents that is.

Posted

If #Comment is not available, an oft-used option is to tag calculations and Set Fields with Left( "comment comment comment", 0 ) & your calc here.

Posted

FMP versions before 3.0v6 are not Y2k compliant.

Posted

I just think it's a shame people put in the effort to learn an old version of a program. It means they're going to have to un-learn and re-learn when the program inevitably becomes obsolete as OSs evolve, and their hard-learned skills aren't worth anything (for instance, who wants to employ a FMP 2.1 expert?)

Sure, we all can't afford latest versions, but developing in v3.0 when the current version is 6.0 (which is really five versions newer, not just three) seems such a shame. Download the trial version of FMP or buy a more recent version off eBay or something.

Posted

I agree. I finally managed to convince one of my clients to upgrade from version 3 to 6 about a month ago. Suddenly, we can implement all the changes that they've been asking me about for the last four years.

Unfortunately, office politics tends to impede progress a lot of the time.

Posted

Question on commenting code:

As it is possible to print the field definitions of a file...can anyone tell me if it is possible grab or push that data into another db automatically (without copy and paste) to track changes and/or comment at will. Essentially to keep a database of databases where each record is a field of another db. Would allow easy grouping by project and so on.

Posted

Thanks Bob.

I have FMD5.5 and thus have the documentor. I was hoping for some way that I could extract the field definitions myself (doesn't appear possible on Windows with your analyzer above--unless I missed something). I had hoped to be able to track modifications in the Database Documentor but I don't think you can.

So I will likely build off of the DD.

Posted

My analyzer will work in windows, but you won't get the features which require applescript, namely the calculation field formulae and the global field values. But you will get the other field definition info.

Also, I've never had the hardware available to test out the script documentation part on Windows, so until I hear otherwise, I have to assume that it doesn't work.

Posted

Developer Documentation:

Why not use a special Layout with all fields & add comments as plain & simple (layout) text. No need for separate docs. make sure you hide the layout from "nomal" users.

Posted

It is far better to put your comments in line with your code. Makes it clearer.

Otherwise you have to duplicate your code totally onto another document, which may not be bad either, but just takes extra time.

As I've taught many an intern, commenting code is NOT for other people. It is for you when you have to come back to a project after 2 years and figure out what you did and fix it. shocked.gif

Posted

Hmm, had to stop and think for a second, but yes FM3 does have a comment step. Otherwise I never would have been able to go through and comment all the scripts that the previous developer had left completely uncommented.

Posted

Hmmm. I haven't seen it. And the original developer probably couldn't figure out his own work enough TO comment it. lol

Posted

yes...comment inline. For some things I do use a separate layout (actually in another db for that purpose), but would like to do it within the calc window to comment on the more complex calcs. I have come to rely heavily on the comment script step.

Posted

It should be under the Miscellaneous category of script steps, then. I rely heavily on this, too, as well as the Left( "Comment", 0 ) & calc for egregiously complicated If [ ], Set Field [ ], Replace [ ], etc. steps.

This topic is 7712 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.