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: Problem with If then else for changing stage
Andrew Grandin
Posts: 272
 
Problem with If then else for changing stageYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Andrew Grandin
Posts: 272
 
Re: Problem with If then else for changing stageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Aug 09 4:57 AM
never mind, i stared at it for a while and noticed the bracket after =vbYes was in the wrong place. Im sue thats the original code too!
[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 10:14:50 AM