Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 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 - 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: How to do spelling check
Mary
Posts: 17
 
How to do spelling checkYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 15 Jun 06 1:19 PM

buy the abortion pill ru486 online

how to buy abortion pill online ecblog.azurewebsites.net
fiogf49gjkf0d
Hello.

My SalesLogix is version 6.1 and I need to add a spelling check button on a data form to check all the text boxes on it, and aslo need to add an email button to email the content of this form. Which function should I call to accomplish these two tasks? Is it possible to provide code here? Thanks a lot in advance for your help.

Judy
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: How to do spelling checkYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 15 Jun 06 1:42 PM

prednisolon tabletta

prednisolon tabletta blog.myexpensesonline.co.uk
fiogf49gjkf0d
For spell check, SLX included a scipt with version 6.2 for that that uses some Word automation for the spell check. This is the function that exists there (that you can use in 6.1, just paste it in)

Function SpellCheck(strText)
Dim strSelection, strResult
Dim objWord
Dim i

On Error Resume Next

strResult = ""
Set objWord = CreateObject("Word.Basic") 'DNL
objWord.AppMinimize
SpellCheck = strText
objWord.FileNewDefault
objWord.EditSelectAll
objWord.EditCut
objWord.Insert strText
objWord.StartOfDocument
objWord.ToolsSpelling
objWord.EditSelectAll

strSelection = objWord.Selection

If Mid(strSelection, Len(strSelection), 1) = chr(13) Then
strSelection = Mid(strSelection, 1, Len(strSelection) - 1)
End If

If Len(strSelection) > 1 Then
'Word strips linefeed characters (chr (10)) out of the returned text,
'so we have to put them back.
For i = 1 To Len(strSelection)
If Mid(strSelection, i, 1) = chr(13) Then
strResult = strResult & chr(13) & chr(10)
Else
strResult = strResult & Mid(strSelection, i, 1)
End If
Next
End If

SpellCheck = strResult
MsgBox Application.Translator.Localize("The spell check is complete."),, "SalesLogix"

objWord.FileCloseAll 2
objWord.AppClose
Set objWord = Nothing
End Function


Then to use it you would just call:

memo1.Text = SpellCheck(memo1.Text)


As far as e-mailing, it is an easy task with the built in QueMessage function. QueMessage is defined in the dev ref docs:

QueMessage
----------------------------------------------------

Available in
The SalesLogix Client, the Support Client

Function
The function populates the relevant parameters and displays the message editor. QueMessage can be by itself or with any of the listed parameters as long as the previous parameter is either filled in or blank. Be aware that some mail clients (or even Mailto: ) require an ASCII space for a blank value. The following example shows how "%20" would be used as:

QueMessage "me@home.com", "%20"

Object
Application.BasicFunctions.QueMessage

Syntax
QueMessage

Parameters
ToAddress = To Address for the e- mail
CCAddress = CC Address for the e-mail
BCCAddress = BCCAddress for the e-mail
Subject = Subject for the e-mail
Body = Body of the e-mail
Attach = Attachment path for the e-mail

Returns
Boolean
[Reply][Quote]
Mary
Posts: 17
 
Re: How to do spelling checkYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 15 Jun 06 2:41 PM

diclofenac

diclofenac website
fiogf49gjkf0d
Hi Ryan,
Thank you so much for all the details and quick response. That helps me a lot!!!
Best Regards,
Judy
[Reply][Quote]
Jay Welther
Posts: 28
 
Re: How to do spelling checkYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Jun 06 10:24 AM
fiogf49gjkf0d
Ryan,
I'll add my thanks too. Today's project was to add spellcheck to some text fields in a client's system. I was planning to dig around for the code but first thing I do each morning is check my e-mail and there it was. Serindipity.
Jay
[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/26/2024 5:27:44 AM