March 22, 200322 yr OK, maybe I'm just tired, but the following script steps ... Show Custom Dialog ["Go to record","Enter a record #","gNumA"] If [gNumA > 0 and gNumA <=Status(CurrentFoundCount)] Go to Record/Request/Page["gNumA"] End If (gNumA is a global number field) ... don't work. I don't get brought to the record specified. It's as if it's not registering the change to the field's value. I checked, and Go to Record by field value works fine by itself. The IF statement passes (I stuck a pause just after it and sure enough, it paused). IS there something I'm missing about the Show custom Dialog script step? Shouldn't Show Custom Dialog change the value in gNumA into whatever the user enters, then Go to Record... go to the record specified? The documentation says it works similarly to Set, which does register changes within the same script. Thanks, Jeff ps- Please don't ask why I don't just use the built in Go to Script by Number step. The above is a super simplification of what I'm trying to do (custom messages and the like). But, I entered the code exactly as above and it still didn't work.
March 22, 200322 yr I tried your set up and things work (see attachment) Make sure field gNumA is a global field, number type Try.fp5.zip
March 22, 200322 yr Author Found the problem. Maybe it's a bug in FileMaker. The only difference between our scripts was that I did not use a Label (it was an empty string). I changed it to "Record #" and it worked. It seems some strange value is returned when no label is used (I also tried it with " " and it worked). Thanks for your help!
Create an account or sign in to comment