From sven.siegmund at gmail.com Wed Jun 11 18:33:56 2008 From: sven.siegmund at gmail.com (Sven Siegmund) Date: Wed, 11 Jun 2008 20:33:56 +0200 Subject: [FileMaker and Lisp] RegexPlugIn assistance needed Message-ID: Hello, I subscribed to get some support with RegexPlugIn for Filemaker. I successfully installed RegexPlugIn in Filmaker 7 (on Windows XP). Evaluate ("RegP_Version" ) results in "0.2.1", so the plugin is basically working. What is not working is pretty much everything else: I have made a testing database which I attach. It has three fields: target function result The second record of this databse is like this: target: something function: RegP_Replace ( "o" ; target; "xxx") result: ? But as result I expected sxxxmething. What am I doing wrong? Thanks for any help. Sven. From sven.siegmund at gmail.com Wed Jun 11 18:34:54 2008 From: sven.siegmund at gmail.com (Sven Siegmund) Date: Wed, 11 Jun 2008 20:34:54 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: References: Message-ID: sorry for not attaching the file before. S. 2008/6/11, Sven Siegmund : > Hello, I subscribed to get some support with RegexPlugIn for Filemaker. > > I successfully installed RegexPlugIn in Filmaker 7 (on Windows XP). > > Evaluate ("RegP_Version" ) results in "0.2.1", so the plugin is > basically working. What is not working is pretty much everything else: > > I have made a testing database which I attach. It has three fields: > target > function > result > > The second record of this databse is like this: > target: something > function: RegP_Replace ( "o" ; target; "xxx") > result: ? > > But as result I expected sxxxmething. > > What am I doing wrong? > > Thanks for any help. > > > Sven. > -------------- next part -------------- A non-text attachment was scrubbed... Name: problem.fp7 Type: application/octet-stream Size: 45056 bytes Desc: not available URL: From edi at agharta.de Wed Jun 11 18:56:22 2008 From: edi at agharta.de (Edi Weitz) Date: Wed, 11 Jun 2008 20:56:22 +0200 Subject: [FileMaker and Lisp] RegexPlugIn assistance needed In-Reply-To: (Sven Siegmund's message of "Wed, 11 Jun 2008 20:33:56 +0200") References: Message-ID: On Wed, 11 Jun 2008 20:33:56 +0200, "Sven Siegmund" wrote: > Hello, I subscribed to get some support with RegexPlugIn for Filemaker. > > I successfully installed RegexPlugIn in Filmaker 7 (on Windows XP). > > Evaluate ("RegP_Version" ) results in "0.2.1", so the plugin is > basically working. What is not working is pretty much everything else: > > I have made a testing database which I attach. It has three fields: > target > function > result > > The second record of this databse is like this: > target: something > function: RegP_Replace ( "o" ; target; "xxx") > result: ? > > But as result I expected sxxxmething. > > What am I doing wrong? You're not doing anything wrong, you're just seeing a peculiarity of FileMaker. Edit the "function" field (e.g. add a space at the end and delete it again) and you should see the correct result - at least that works for me. Jens can explain this better than me (I'm not a FileMaker expert), but I would guess there's an FAQ entry for this. HTH, Edi. From sven.siegmund at gmail.com Wed Jun 11 19:02:10 2008 From: sven.siegmund at gmail.com (Sven Siegmund) Date: Wed, 11 Jun 2008 21:02:10 +0200 Subject: [FileMaker and Lisp] RegexPlugIn assistance needed In-Reply-To: References: Message-ID: > Edit the "function" field (e.g. add a space at the end and > delete it again) and you should see the correct result - at least that > works for me. Nothig happens for me. I still get the "?" result. )-: S. From info at jensteich.de Wed Jun 11 19:03:51 2008 From: info at jensteich.de (Jens Teich) Date: Wed, 11 Jun 2008 21:03:51 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: References: Message-ID: <48502197.8030306@jensteich.de> Sven Siegmund schrieb: > sorry for not attaching the file before. > > S. > > > 2008/6/11, Sven Siegmund : >> Hello, I subscribed to get some support with RegexPlugIn for Filemaker. >> >> I successfully installed RegexPlugIn in Filmaker 7 (on Windows XP). >> >> Evaluate ("RegP_Version" ) results in "0.2.1", so the plugin is >> basically working. What is not working is pretty much everything else: >> >> I have made a testing database which I attach. It has three fields: >> target >> function >> result >> >> The second record of this databse is like this: >> target: something >> function: RegP_Replace ( "o" ; target; "xxx") >> result: ? >> >> But as result I expected sxxxmething. >> >> What am I doing wrong? Try RegP_Replace ( "o" ; problem::target; "xxx") Jens From sven.siegmund at gmail.com Wed Jun 11 19:05:02 2008 From: sven.siegmund at gmail.com (Sven Siegmund) Date: Wed, 11 Jun 2008 21:05:02 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: <48502197.8030306@jensteich.de> References: <48502197.8030306@jensteich.de> Message-ID: > Try > > RegP_Replace ( "o" ; problem::target; "xxx") Tried. Still no result /-: S. From edi at agharta.de Wed Jun 11 19:08:06 2008 From: edi at agharta.de (Edi Weitz) Date: Wed, 11 Jun 2008 21:08:06 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: (Sven Siegmund's message of "Wed, 11 Jun 2008 21:05:02 +0200") References: <48502197.8030306@jensteich.de> Message-ID: On Wed, 11 Jun 2008 21:05:02 +0200, "Sven Siegmund" wrote: > Tried. Still no result /-: Could you first try with a normal calculation field to check if the function works as expected? Edi. From sven.siegmund at gmail.com Wed Jun 11 19:13:09 2008 From: sven.siegmund at gmail.com (Sven Siegmund) Date: Wed, 11 Jun 2008 21:13:09 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: References: <48502197.8030306@jensteich.de> Message-ID: > Could you first try with a normal calculation field to check if the > function works as expected? Sure enough that works. I added a field to_be_evaluated, and a calcuation field which evaluates to_be_evaluted. It evaluates well. It's attached again. S. -------------- next part -------------- A non-text attachment was scrubbed... Name: problem.fp7 Type: application/octet-stream Size: 40960 bytes Desc: not available URL: From edi at agharta.de Wed Jun 11 19:16:32 2008 From: edi at agharta.de (Edi Weitz) Date: Wed, 11 Jun 2008 21:16:32 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: (Sven Siegmund's message of "Wed, 11 Jun 2008 21:13:09 +0200") References: <48502197.8030306@jensteich.de> Message-ID: On Wed, 11 Jun 2008 21:13:09 +0200, "Sven Siegmund" wrote: > Sure enough that works. I added a field to_be_evaluated, and a > calcuation field which evaluates to_be_evaluted. It evaluates well. > It's attached again. That's not what I meant. I meant a calculation field which calculates RegP_Replace ( "o" ; problem::target; "xxx") directly and not with the indirection of using Evaluate. From info at jensteich.de Wed Jun 11 19:21:18 2008 From: info at jensteich.de (Jens Teich) Date: Wed, 11 Jun 2008 21:21:18 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: References: <48502197.8030306@jensteich.de> Message-ID: <485025AE.6070206@jensteich.de> Sven Siegmund schrieb: >> Could you first try with a normal calculation field to check if the >> function works as expected? > > Sure enough that works. I added a field to_be_evaluated, and a > calcuation field which evaluates to_be_evaluted. It evaluates well. > It's attached again. I just need to refresh the 'result' by adding a space to 'function' and store by clicking on the background. Then I see the correct result. Jens From sven.siegmund at gmail.com Wed Jun 11 19:23:47 2008 From: sven.siegmund at gmail.com (Sven Siegmund) Date: Wed, 11 Jun 2008 21:23:47 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: References: <48502197.8030306@jensteich.de> Message-ID: > directly and not with the indirection of using Evaluate. Aaah, I see. Well, that is what I can't do. When creating the calculation field, having written RegP_Replace ( "o" ; target; "xxx") as calculation, I cannot click OK. FM complains: "There are too few parameters in this function" I also have tried this as calculation: External ( RegP_Replace ( "o" ; target; "xxx") ; 0) FM again complains: "There are too few parameters in this function" I also tried it with the comma syntax: External ( RegP_Replace ( "o", target, "xxx"), 0) same error And I tried this: External ( "RegP_Replace", "o", target, "xxx") FM complains: there are too MANY parameters in this function And this: External ( "RegP_Replace ( "o", target, "xxx")", 0) FM complains: the specified field cannot be found From info at jensteich.de Wed Jun 11 19:27:25 2008 From: info at jensteich.de (Jens Teich) Date: Wed, 11 Jun 2008 21:27:25 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: References: <48502197.8030306@jensteich.de> Message-ID: <4850271D.1020906@jensteich.de> Sven Siegmund schrieb: >> directly and not with the indirection of using Evaluate. > > Aaah, I see. Well, that is what I can't do. When creating the > calculation field, having written RegP_Replace ( "o" ; target; "xxx") > as calculation, I cannot click OK. FM complains: "There are too few > parameters in this function" > > I also have tried this as calculation: > External ( RegP_Replace ( "o" ; target; "xxx") ; 0) > FM again complains: "There are too few parameters in this function" > > I also tried it with the comma syntax: > External ( RegP_Replace ( "o", target, "xxx"), 0) > same error > > And I tried this: > External ( "RegP_Replace", "o", target, "xxx") > FM complains: there are too MANY parameters in this function > > And this: > External ( "RegP_Replace ( "o", target, "xxx")", 0) > FM complains: the specified field cannot be found > _______________________________________________ > FM-Lisp mailing list > FM-Lisp at common-lisp.net > http://common-lisp.net/cgi-bin/mailman/listinfo/fm-lisp > Remove External(), leaving only RegP_Replace ( "o" ; target; "xxx") as Calculation. Jens From sven.siegmund at gmail.com Wed Jun 11 19:29:46 2008 From: sven.siegmund at gmail.com (Sven Siegmund) Date: Wed, 11 Jun 2008 21:29:46 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: <4850271D.1020906@jensteich.de> References: <48502197.8030306@jensteich.de> <4850271D.1020906@jensteich.de> Message-ID: > Remove External(), leaving only > > RegP_Replace ( "o" ; target; "xxx") > > as Calculation. Yes, that's what was my first try described @21:23 FM: There are too few parameters inthis function S. From sven.siegmund at gmail.com Wed Jun 11 19:38:14 2008 From: sven.siegmund at gmail.com (Sven Siegmund) Date: Wed, 11 Jun 2008 21:38:14 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: References: <48502197.8030306@jensteich.de> <4850271D.1020906@jensteich.de> Message-ID: Maybe I should add that in RegexPlugInDemo.fp7 which is designed to get familiar with the plugin, I have in most cases "?" as Output. I only get something in records 2, 9, 10, and 11. S. From edi at agharta.de Wed Jun 11 19:38:55 2008 From: edi at agharta.de (Edi Weitz) Date: Wed, 11 Jun 2008 21:38:55 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: (Sven Siegmund's message of "Wed, 11 Jun 2008 21:29:46 +0200") References: <48502197.8030306@jensteich.de> <4850271D.1020906@jensteich.de> Message-ID: On Wed, 11 Jun 2008 21:29:46 +0200, "Sven Siegmund" wrote: > Yes, that's what was my first try described @21:23 FM: There are too > few parameters inthis function Jens, could this be a problem with FileMaker 7 being too old? From sven.siegmund at gmail.com Wed Jun 11 19:38:51 2008 From: sven.siegmund at gmail.com (Sven Siegmund) Date: Wed, 11 Jun 2008 21:38:51 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: References: <48502197.8030306@jensteich.de> <4850271D.1020906@jensteich.de> Message-ID: > only get something in records 2, 9, 10, and 11. and record 3 of course, the version of plugin. S. From info at jensteich.de Wed Jun 11 19:39:21 2008 From: info at jensteich.de (Jens Teich) Date: Wed, 11 Jun 2008 21:39:21 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: References: <48502197.8030306@jensteich.de> <4850271D.1020906@jensteich.de> Message-ID: <485029E9.3070705@jensteich.de> Sven Siegmund schrieb: >> Remove External(), leaving only >> >> RegP_Replace ( "o" ; target; "xxx") >> >> as Calculation. > > Yes, that's what was my first try described @21:23 > FM: There are too few parameters inthis function > > S. > _______________________________________________ > FM-Lisp mailing list > FM-Lisp at common-lisp.net > http://common-lisp.net/cgi-bin/mailman/listinfo/fm-lisp Hm. Strange. Does the test database work for you? http://jensteich.de/regex-plugin/ExampleDB.zip It might be a problem with the aged FM version you are using. Do you see any chance to make a test with FM 9, for example with the trial version? Jens From sven.siegmund at gmail.com Wed Jun 11 19:39:36 2008 From: sven.siegmund at gmail.com (Sven Siegmund) Date: Wed, 11 Jun 2008 21:39:36 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: References: <48502197.8030306@jensteich.de> <4850271D.1020906@jensteich.de> Message-ID: Possibly. I have 7.0v1 S. From info at jensteich.de Wed Jun 11 19:42:26 2008 From: info at jensteich.de (Jens Teich) Date: Wed, 11 Jun 2008 21:42:26 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: References: <48502197.8030306@jensteich.de> <4850271D.1020906@jensteich.de> Message-ID: <48502AA2.1040603@jensteich.de> Sven Siegmund schrieb: >> Remove External(), leaving only >> >> RegP_Replace ( "o" ; target; "xxx") >> >> as Calculation. > > Yes, that's what was my first try described @21:23 > FM: There are too few parameters inthis function Rereading your post: did you try this with comma as separator? RegP_Replace ( "o", target, "xxx") Jens From sven.siegmund at gmail.com Wed Jun 11 19:45:17 2008 From: sven.siegmund at gmail.com (Sven Siegmund) Date: Wed, 11 Jun 2008 21:45:17 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: <48502AA2.1040603@jensteich.de> References: <48502197.8030306@jensteich.de> <4850271D.1020906@jensteich.de> <48502AA2.1040603@jensteich.de> Message-ID: > RegP_Replace ( "o", target, "xxx") no, sorry. He does not like this syntax, too: There are too few parameters in this function. Of the demo only records 2, 3, 9, 10, and 11 have some output. (the forst record has output ""), others have "?" S. From sven.siegmund at gmail.com Wed Jun 11 19:49:17 2008 From: sven.siegmund at gmail.com (Sven Siegmund) Date: Wed, 11 Jun 2008 21:49:17 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: References: <4850271D.1020906@jensteich.de> <48502AA2.1040603@jensteich.de> Message-ID: WOW! I think I got the idea. My dumb version of FM does want the optional flag argument aswell. Calculating RegP_Replace ( "o"; target; "xxx"; 0) has the expected result! S. From sven.siegmund at gmail.com Wed Jun 11 19:50:43 2008 From: sven.siegmund at gmail.com (Sven Siegmund) Date: Wed, 11 Jun 2008 21:50:43 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: References: <4850271D.1020906@jensteich.de> <48502AA2.1040603@jensteich.de> Message-ID: > RegP_Replace ( "o"; target; "xxx"; 0) The cleaner syntax is here: RegP_Replace ( "o"; target; "xxx"; "") which I am going to use. Anyway, thanks for your assistance. S. From info at jensteich.de Wed Jun 11 19:52:24 2008 From: info at jensteich.de (Jens Teich) Date: Wed, 11 Jun 2008 21:52:24 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: References: <48502197.8030306@jensteich.de> <4850271D.1020906@jensteich.de> Message-ID: <48502CF8.9080502@jensteich.de> Edi Weitz schrieb: > On Wed, 11 Jun 2008 21:29:46 +0200, "Sven Siegmund" wrote: > >> Yes, that's what was my first try described @21:23 FM: There are too >> few parameters inthis function > > Jens, could this be a problem with FileMaker 7 being too old? Maybe. Version 7v1 should at least be updated to version 7v3. Jens From sven.siegmund at gmail.com Wed Jun 11 19:55:31 2008 From: sven.siegmund at gmail.com (Sven Siegmund) Date: Wed, 11 Jun 2008 21:55:31 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: <48502CF8.9080502@jensteich.de> References: <4850271D.1020906@jensteich.de> <48502CF8.9080502@jensteich.de> Message-ID: > Maybe. Version 7v1 should at least be updated to version 7v3. Where can I get an update? Cannot find anything like that at www.filemaker.com. S. From info at jensteich.de Wed Jun 11 20:06:18 2008 From: info at jensteich.de (Jens Teich) Date: Wed, 11 Jun 2008 22:06:18 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: References: <4850271D.1020906@jensteich.de> <48502CF8.9080502@jensteich.de> Message-ID: <4850303A.5000207@jensteich.de> Sven Siegmund schrieb: >> Maybe. Version 7v1 should at least be updated to version 7v3. > > Where can I get an update? Cannot find anything like that at www.filemaker.com. http://www.filemaker.com/support/downloads/index.html -> choose a product -> FM 7 Jens From sven.siegmund at gmail.com Wed Jun 11 20:11:25 2008 From: sven.siegmund at gmail.com (Sven Siegmund) Date: Wed, 11 Jun 2008 22:11:25 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: <4850303A.5000207@jensteich.de> References: <4850271D.1020906@jensteich.de> <48502CF8.9080502@jensteich.de> <4850303A.5000207@jensteich.de> Message-ID: > http://www.filemaker.com/support/downloads/index.html > > -> choose a product -> FM 7 Thanks a lot! S. From edi at agharta.de Wed Jun 11 20:13:52 2008 From: edi at agharta.de (Edi Weitz) Date: Wed, 11 Jun 2008 22:13:52 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: <48502CF8.9080502@jensteich.de> (Jens Teich's message of "Wed, 11 Jun 2008 21:52:24 +0200") References: <48502197.8030306@jensteich.de> <4850271D.1020906@jensteich.de> <48502CF8.9080502@jensteich.de> Message-ID: On Wed, 11 Jun 2008 21:52:24 +0200, Jens Teich wrote: >> Jens, could this be a problem with FileMaker 7 being too old? > > Maybe. You should probably update the website and just write that the plug-in works with FM 8 and higher... :) From info at jensteich.de Wed Jun 11 20:29:37 2008 From: info at jensteich.de (Jens Teich) Date: Wed, 11 Jun 2008 22:29:37 +0200 Subject: [FileMaker and Lisp] Re: RegexPlugIn assistance needed In-Reply-To: References: <48502197.8030306@jensteich.de> <4850271D.1020906@jensteich.de> <48502CF8.9080502@jensteich.de> Message-ID: <485035B1.4030809@jensteich.de> Edi Weitz schrieb: > On Wed, 11 Jun 2008 21:52:24 +0200, Jens Teich wrote: > >>> Jens, could this be a problem with FileMaker 7 being too old? >> Maybe. > > You should probably update the website and just write that the plug-in > works with FM 8 and higher... :) done :)