Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, August 29, 2025 
 
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 - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Global Constant declaration in vbscript.
satz
Posts: 75
 
Global Constant declaration in vbscript.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Jun 09 3:57 AM
Hi All,

I have constants declared in my legacy basic script.
Example :
-------------
Global CONST MB_OK=0
Global CONST MB_YESNOCANCEL=3
Global CONST MB_YESNO=4


I am on the process of customizing the legacy to vb script.

How do i have to handle this constants in VB script ?

Do i have to use Application.basicfunctions.globalinfoset ?

help needed.

Thanks in advance.


[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Global Constant declaration in vbscript.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Jun 09 5:04 AM
What do you use your Constants for?

VB Script doesn't allow the same kind of Constants as the legacy script, but you could declare variables and use them.
If you have a Library of Constants, you may want to put them on a Global script, or just on a script that you would then Include wherever you need them.

Now, regarding the Message Box constants, you don't need to declare them, you could just use the VB ones: VBOk, VBYesNoCancel, VBYesNo. They are already available.
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Global Constant declaration in vbscript.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Jun 09 5:09 AM
What do you use your Constants for?

VB Script doesn't allow the same kind of Constants as the legacy script, but you could declare variables and use them.
If you have a Library of Constants, you may want to put them on a Global script, or just on a script that you would then Include wherever you need them.

Now, regarding the Message Box constants, you don't need to declare them, you could just use the VB ones: VBOk, VBYesNoCancel, VBYesNo. They are already available.
[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 © 2025 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): 8/29/2025 9:59:10 AM