Devin Posted November 17, 2000 Posted November 17, 2000 I'm trying to write a script that: enters Find Mode Does a Set field on Field "Date" from a gobal field "gobaldate" I then want it to find all dates that are greaterthan "gobaldate" So I thought on the set field script I could put "> " & gobaldate But since it's a date field it will not allow any thing other than a date. If I make my date fileds text it works but I wan't to view my fields as dates (11/16/00). Is there a work around for this problem? Thanks Devin
Chuck Posted November 17, 2000 Posted November 17, 2000 Make sure that the field you are searching on is on the layout you are in during the script, perhaps using a Go to Layout script step, and then use the Insert Calculated Result script step instead of Set Field. Chuck
Devin Posted November 17, 2000 Author Posted November 17, 2000 I was using a goto layout I tried the insert cal and got some wierd numbers. The Cal field reads: ">" & gobaldate Devin
LiveOak Posted November 17, 2000 Posted November 17, 2000 This is one of those operation that has been goofy in FM from the start. I created at test file. The first time I tried it (FM5 & Mac) it worked, then it quit working - wierd. Try instead: Define gTextDate (global, text) SetField[gTextDate, ">"& gobaldate Enter Find Mode [] Copy [select, "gTextDate"] Paste["Date"] Perform Find [] I'm not sure why you have to do this and date ranges in such a round about manner. It's strange that the Insert Calculated Result fails. -bd
Recommended Posts
This topic is 9042 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 accountSign in
Already have an account? Sign in here.
Sign In Now