October 25, 200421 yr Newbies Is there a way to script checking if a file is already open, in a startup file? So if a user opens the starter file, it can perform the check, and then bypass normal startup proceedures etc etc.
October 25, 200421 yr The DatabaseNames function returns all the names of opens files, paragraph delimited. To look for a file called "HotStuff.fp5" you'd use the function... PatternCount ( "P" & DatabaseNames & "P", "P" & "HotStuff" & "P" ) > 0 ...where the P in "P" is really the paragraph symbol.
October 25, 200421 yr You don't have to separate the pilcrows from the filename, nor is the > 0 portion necessary. If [PatternCount( "
October 26, 200421 yr I was waiting for somebody to suggest those changes ;-) I usually separate the pilcrows (never knew there were called that) only to make the string a bit more readable. It also allows the string constant to be replaced with a field name very easily. But yeah, all good comments.
Create an account or sign in to comment