Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, November 23, 2024 
 
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 - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: Question on WhenEnter Event
RJ Eaton
Posts: 234
 
Question on WhenEnter EventYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Mar 07 9:12 AM
fiogf49gjkf0d
I have a lookup control in which when the person enters the control I am doing a form check for all the required data has been collected and running them back to the controls that they might have missed.

This can't be done on the validate event since I don't want it to happen everytime the account changes.. just when they are ready to pass the form along...

Here is the rub...

in my check I do:
If Len(pklType.Text) < 1 Then
MsgBox "You need to enter the client type",,"Error with type"
pklType.SetFocus
lueSalesApprove.Text = ""
cbReady.Checked = False
Exit Sub
End If

Issue is that I get an error saying..

Error Calling method lueSalesApproveEnterControl
Error in dispatch.invoke():Wrong number of arguments or invalid property assignment

Anybody got a hint on how to resolve this..
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Question on WhenEnter EventYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Mar 07 8:46 AM
fiogf49gjkf0d
A Form's validate event only "fires" when a BOUND value has been changed.

There are really two levels of "validation":
A - Checking to see if a value is in range or of proper format at the control event level
B - Form level validation.

I'd suggest you re-think your approach go form level.
All you have to do is set focus to the control and "return false" on the validate.

--
rjl
[Reply][Quote]
RJ Eaton
Posts: 234
 
Re: Question on WhenEnter EventYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Mar 07 11:39 AM
fiogf49gjkf0d
Thanks RJ, Turned out to be that the setfocus, and Exit sub wasn't allowing the When enter to complete. Slight modification and all works fine..

Thanks for the input
[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 © 2024 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): 11/23/2024 2:53:37 AM