Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


returning variable to app

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,39603
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> returning variable to app
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 returning variable to app - 11/10/2006 7:10:55 AM   
  ursus

 

Posts: 1
Score: 0
Joined: 11/10/2006
Status: offline
I am a total newbe on vbs. Have a little Visual Basic experience, but that was a long time ago. So please be a little patient with me.
I have a program (FileMaker Pro) that starts a vbs to retrieve a path. I have written the first part of the script (with a lot of help), Which grabs the path. Now I want to return this value into a field in a Filemaker.
Filemaker is a database program. The field might be active in the current window, or I can make it appear if need to. I have no clue how to handle filemaker and vbs in such a way the path gets to be in the field.
This is what I have come up with so far.
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:\")      
Set objFolderItem = objFolder.Self
objPath = objFolderItem.Path

objPath now holds the path I have selected, but now I want to transfer in into Filemaker. Any help much appreciated.

Ursus
 
 
Post #: 1
 
 RE: returning variable to app - 11/11/2006 9:14:02 PM   
  TNO


Posts: 1397
Score: 16
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
Without any knowledge of FileMaker, my best guess is to use SendKeys to do the job:


      

and from this point use the sendkeys documentation to get your cursor to the field where you need it and place the path where it needs to be




_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch

(in reply to ursus)
 
 
Post #: 2
 
 RE: returning variable to app - 11/13/2006 7:56:17 PM   
  ginolard


Posts: 1082
Score: 21
Joined: 8/10/2005
Status: offline
Again, I don't know Filemaker but you have a couple of options depending on Filemaker's capabilities

Store the field in the registry
Store the field in an environment variable
Store the field in a text file

_____________________________

Author of ManagePC - http://managepc.net
AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm
Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm

(in reply to TNO)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> returning variable to app Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts