![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
My employer has, for lots of reasons, forced me to use FM. I'm not (quite) complaining that FM is not That Other Tool. I'm complaining about the fact that there seems to be no suitable documenta tion that teaches FM in terms that someone used to C / C++ / Embedded SQL e tc. can easily understand. Well, at least so far my Google-searches have go ne unsuccessful. Surely, I'm not the only one with such previous experience ? An example of the disconnect between my previous experience and FM: Filemaker has a "next record" type command, but it takes _NO ARGUMENTS_ So that has to mean that I cannot have nested loops or multiple "cursors" (because I cannot specify which g*ddamn cursor I want to move forward) And the documentation I've found on filemaker.com has nothing to say about this. |
#4
| |||
| |||
|
|
On 2011-02-18 12:58:40 -0800, LinuxCub <linuxcub (AT) email (DOT) dk> said: My employer has, for lots of reasons, forced me to use FM. I'm not (quite) complaining that FM is not That Other Tool. I'm complaining about the fact that there seems to be no suitable documenta tion that teaches FM in terms that someone used to C / C++ / Embedded SQL e tc. can easily understand. Well, at least so far my Google-searches have go ne unsuccessful. Surely, I'm not the only one with such previous experience ? An example of the disconnect between my previous experience and FM: Filemaker has a "next record" type command, but it takes _NO ARGUMENTS_ So that has to mean that I cannot have nested loops or multiple "cursors" (because I cannot specify which g*ddamn cursor I want to move forward) And the documentation I've found on filemaker.com has nothing to say about this. Go To Record, if you have to move through records until you hit one that meets a certain condition, is put inside a Loop, with an Exit Loop If test. So pseudo-code in the Scriptmaker would look something like this: Loop Exit Loop If [test goes here, for ex. Invoice Status = "Paid"] Go to Next Record/Request [Next, Exit after Last] End Loop That's where you put your arguments. You can also use Go To Record by number, or if you know or can calculate how many records forward you want to jump, there's Go To Record by calculation. |
|
I'm not aware of a SQL -> FM developers manual, because frankly, most FM developers started out as creative or business knowledge experts who built something in FM and somehow ended up FM experts who make a living at it. I know dozens of FM developers personally, and I can think of TWO who have computer science degrees. |
)
#5
| |||
| |||
|
#6
| |||
| |||
|
#7
| |||
| |||
|
#8
| |||
| |||
|
#9
| |||
| |||
|
|
Now imagine that we're dealing with 2 tables, so pieces of paper. And 2 loops, one nested inside another. We can do this, because we have 2 hands, one hand corresponds to the outer loop, the other hand corresponds to the inner loop. But when I say "next record", how do I specify which hand I want to move. |
|
select * from people a, people b where a.id > b.id That would give me all possible pairings (I think). (This is a self-join type of situation). |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |