pctechtv Posted February 20, 2014 Posted February 20, 2014 I have a container field and I was trying to write a script to automate multiple file inserts. I noticed that I when I assign a result of a global field (in this form C:Apache24INSTALL.txt ) to where the file lives the dialog would pop up with an error that tells me that it could not find the file. The thing is that it was chopping the directory off of it every time (leaving off the drive letter). Currently to test it I am only trying to insert one file. After trying to get some help on the FileMaker forum I want to ask if anybody knows of this as a bug. I am using FileMaker 13 Advanced on Windows. I tried it on FileMaker 12 as well it does the same. I know that $Path is correct, because before it gets to the insert I use the Data Viewer and it is correct, but when the insert attempts to happen I get the error (message box 1). Then I started playing with the idea of prefixing it with the examples in the dialog box and eventually it reads what is supposed to but still does not insert the file (message box 2). Thanks for any help. http://pctechtv.com/show/cantinsertfile.png
pctechtv Posted February 20, 2014 Author Posted February 20, 2014 Seems to be that this format for the variable solved it: "filewin:/" & Substitute("G:JulimyMov2.veg";""; "/") which results in filewin:/G:/Juli/myMov2.veg Thanks
Wim Decorte Posted February 20, 2014 Posted February 20, 2014 After trying to get some help on the FileMaker forum I want to ask if anybody knows of this as a bug. I Â It's not a bug. Â In order to keep things consistent on both Mac and Windows, FM has adopted their own path syntax. It is explained at each "insert" dialog box:
Recommended Posts
This topic is 3928 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