![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Fm 8.5 Adv, XP I want to return a value from a vbscript to a field within filemaker. I am a total nitwit as to vbscripting. I have made a start. Created a filemaker script let it execute the following Const WINDOW_HANDLE = 0 Const NO_OPTIONS = 0 Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.BrowseForFolder _ (WINDOW_HANDLE, "Select a folder:", NO_OPTIONS, "C:\Scripts") Set objFolderItem = objFolder.Self objPath = objFolderItem.Path objPath does now hold the correct path (which I have checked with Wscript.Echo objPath) but how do I now get the value ino a field? I know this is perhaps a more vbscript related question, but those guys have no idea how filemaker works. So I thought I tried here first. |
#3
| |||
| |||
|
|
Hi Ursus There are a number of ways of doing this. Probably the simplest way is to create a VB binary that passes information back to the shell, ther pass a shell command out through the shell using the free shell plugin from abstrak. http://www.abstrakt.com/shell.html Another way Return Result through the Web Viewer (requires FileMaker 8.5) http://www.connectingdata.com/Return...hWebViewer.zip * The new Web Viewer feature in FileMaker 8.5 offers a new and interesting way of returning a VBscript result to FM. Up to no we were limited to pasting (not recommended) or triggering an import script in FM. With the Web Viewer we can now have the VBscript write out a small HTML page with the result and then trigger a FileMaker script that scrapes the content of that HTML page into a FileMaker field. Try it out... |
#4
| |||
| |||
|
|
Keith, The second option you gave, just gives me exactly what I want. Thanks. Your welcome :-) |
![]() |
| Thread Tools | |
| Display Modes | |
| |