![]() |
Chilkat HOME Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi DLL Go Java Node.js Objective-C PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(Tcl) Transition from Email.CreateDsn to Email.ToDsnProvides instructions for replacing deprecated CreateDsn method calls with ToDsn. Note: This example requires Chilkat v11.0.0 or greater.
load ./chilkat.dll set email [new_CkEmail] # ... # ... set explanation "..." set statusFieldsXml "..." set headerOnly 0 # ------------------------------------------------------------------------ # The CreateDsn method is deprecated: # emailObj is a CkEmail set emailObj [CkEmail_CreateDsn $email $explanation $statusFieldsXml $headerOnly] if {[CkEmail_get_LastMethodSuccess $email] == 0} then { puts [CkEmail_lastErrorText $email] delete_CkEmail $email exit } # ... # ... delete_CkEmail $emailObj # ------------------------------------------------------------------------ # Do the equivalent using ToDsn. # Your application creates a new, empty Email object which is passed # in the last argument and filled upon success. set dsnEmail [new_CkEmail] set success [CkEmail_ToDsn $email $explanation $statusFieldsXml $headerOnly $dsnEmail] if {$success == 0} then { puts [CkEmail_lastErrorText $email] delete_CkEmail $email delete_CkEmail $dsnEmail exit } delete_CkEmail $email delete_CkEmail $dsnEmail |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.