Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, July 5, 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: Type Mismatch
Aaron Lowe
Posts: 37
 
Type MismatchYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Apr 11 4:04 PM
fiogf49gjkf0d

Now that our users are starting to really use the SLX Ticket system, we get an error when we email someone the ticket and "Send SLX". It says there is an error in the TICKET: TICKET ACTIVITY SUPPORT script.  We have SLX 7.2 lan.


I chased it down to the following block of code:


    If (aRate <> "") Then
       dbRate = ((aRate / 60) * intTimeSpec)
       outLabor = intTimeUnits * dbRate
       outFee = outlabor
    End If


If I replace the aRate with a 1, 0, or 1.5 it works just fine. Once I put the aRate variable back in, it crashes.


The aRate is passed in from another method that gets it straight from the database field RATE in the TICKETACTIVITY table -- which is a NUMBER datatype (Oracle 9i database). The intTimeSpec is an integer.

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Type MismatchYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Apr 11 11:52 PM

so if the database value is a NULL This will blow up.....also if aRate = "      " this will blow up....


msgbox out the variable type and value just prior to the If statement....just because the db field is a number doesn't mean the vbScript subfield type is numeric.....same with intTimeSpec......

[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): 7/5/2025 9:04:26 AM