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.
|
|
|
|
Problem with If then else for changing stage
Posted: 05 Aug 09 4:46 AM
|
Hi all, the following code is executed when the user chooses to change a stage of a sale process using the stage combo box. However, i have noticed that whether you choose yes or no it always executes the yes (then) code and never reaches the else. Can anyone see the problem with this code?
If MsgBox (LocalizeFmt("You are about to change the current stage to '%s'. Continue?", Array(cboStages.Text)), vbYesNo + vbQuestion + vbDefaultButton2, Application.Translator.Localize("Change Current Stage") = vbYes) then gstrCurrentStage = cboStages.Text Result = MoveStageTo(strStageID) RefreshOppDetailView SetUpSalesProcess(2) grdSalesProcess.Refresh grdSalesProcess.ExpandAll Else cboStages.Text = gstrCurrentStage End If |
|
|
| |
|
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!
|
|
|
|
|
|
|
|