Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, June 19, 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: Forms Collection error
Paul VanderWaal
Posts: 23
 
Forms Collection errorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Aug 07 12:36 PM
In v7, I am making an update in OnAfterPost on the Contact Detail screen. The field value is displayed in one of my tabs, which may or may not be active at the time of the update. If I try to reference it directly from the forms collection but it has not yet been clicked on, I get an error. So, I wanted to loop through the forms collection to see if it is yet present, but I am getting an error. (I am assuming that would be a good way to find it.)

dim i
msgbox Application.Forms.Count
for i = 0 to Application.Forms.Count - 1
msgbox application.Forms(i).Name
next

After a Ctrl-F5 refresh, the first msgbox count gives me 2
The first time into the loop when i = 0, application.Forms(i).Name returns "Form" for some reason. I guess I expected the Contact Detail form's name.
The second time through the loop, I get an error "Object doesn't support this property or method" trying to return application.Forms(i).Name

Why isn't it getting all the way through the forms collection??
[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): 6/19/2025 4:25:37 PM