Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, May 5, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - Legacy Development
Forum to discuss SalesLogix legacy development including views, scripts, etc.. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Legacy Development | New ThreadView:  Search:  
 Author  Thread: Passing a value to a Script
Ian Fitzpatrick
Posts: 146
 
Passing a value to a ScriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Jun 06 11:22 AM

ventolin vs proair hfa

ventolin vs. proair inhaler
fiogf49gjkf0d
I am on version 5.2.6. I have some long scripts with functions in them and I would like to divide them up to be more concise. I was wondering if there is a way to pass a value when calling another script. Like:
DOInvoke "Basic", "System:ING_Terr_ReState_UpIns" (value1, value2, value3)
or something.

Any advice is appreciated!
Thanks
[Reply][Quote]
Frank Chaffin
Posts: 475
 
Re: Passing a value to a ScriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Jun 06 12:19 PM
fiogf49gjkf0d
I use Application.BasicFunctions.GlobalnfoSet and Application.BasicFunctions.GlobalnfoFor
[Reply][Quote]
Jeremy Brayton
Posts: 491
Top 10 forum poster: 491 posts
 
Re: Passing a value to a ScriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Jun 06 1:19 PM

naloxone and naltrexone are examples of

narcan vs naltrexone
fiogf49gjkf0d
Quote:
Originally posted by Frank Chaffin

I use Application.BasicFunctions.GlobalnfoSet and Application.BasicFunctions.GlobalnfoFor


Those are 6.x VBScript commands and if you're on 6.2.x there is an Application.GlobalInfo collection that is easier to manage than using those functions. The GlobalInfo* functions exist in Legacy and are mainly in BasicFunctions for backwards compatibility. One other function I use is GlobalInfoExists (or GlobalInfo.IndexOf("Blah")) to make sure the global variable is initialized properly, as an added layer of error handling. It'll most likely generate an error if you use GlobalInfoFor on a variable that hasn't been set but I tend to be anal when it comes to these types of checks. 5.x's error handling is vastly different than VBScript so it made sense when I was in Legacy land to litter my code with as many error handling routines as I could.
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 5/5/2024 12:01:46 PM