8/29/2025 9:31:18 AM
|
|
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!
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.
|
|
|
|
Global Constant declaration in vbscript.
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.
|
|
|
|
Re: Global Constant declaration in vbscript.
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. |
|
|
|
Re: Global Constant declaration in vbscript.
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. |
|
|
|
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!
|
|
|
|
|
|
|
|