home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 10 / ioProg_10.iso / soft / optima / samples.z / Excel70T.wxf < prev    next >
Encoding:
Text File  |  1996-06-10  |  5.5 KB  |  217 lines

  1. Save Format v1.3
  2. @begin Form "WinExcel70Tips"
  3.  Exported 0;
  4.  
  5.  @begin Object "WDialog"
  6.   WSCaption 1;
  7.   WSSizeable 1;
  8.   WSDlgBorder 1;
  9.   WSSysMenu 1;
  10.   WSSystemMenu 1;
  11.   WSMinimizeBox 1;
  12.   WSMaximizeBox 1;
  13.   WSGroup 1;
  14.   WSTabStop 1;
  15.   WSResizeBorder 1;
  16.   WSVisible 1;
  17.   FormPositionType "Centered";
  18.   FormAbsTop "173";
  19.   FormAbsLeft "156";
  20.   FDXStructName "WinExcel70TipsFDXStruct";
  21.   Font "8.MS Sans Serif";
  22.   Text "Using The Microsoft Excel 5.0 ODBC Driver";
  23.   @begin Event "Create"
  24.    GencodeSrcLine 175;
  25.    FunctionName "WinExcel70Tips::WinExcel70Tips_Create";
  26.   @end;
  27.   @begin UserFunction "WinExcel70Tips()"
  28.    Compiler 1;
  29.    GencodeSrcLine 189;
  30.    FunctionName "WinExcel70Tips::WinExcel70Tips()";
  31.   @end;
  32.   @begin UserFunction "~WinExcel70Tips()"
  33.    Compiler 1;
  34.    GencodeSrcLine 193;
  35.    FunctionName "WinExcel70Tips::~WinExcel70Tips()";
  36.   @end;
  37.   ResID 105;
  38.   DesignName WinExcel70Tips;
  39.   TabIndex 0;
  40.   DesignRect 46,126,264,260;
  41.  @end;
  42.  
  43.  @begin Object "WTextBox"
  44.   WTextBoxMultiLine 1;
  45.   WTextBoxAutoHScroll 1;
  46.   WTextBoxReadOnly 1;
  47.   WCCSNoResize 1;
  48.   WSHScroll 1;
  49.   WSVScroll 1;
  50.   WSBorder 1;
  51.   WSChild 1;
  52.   WSMinimizeBox 1;
  53.   WSGroup 1;
  54.   WSExClientEdge 1;
  55.   WSVisible 1;
  56.   FDXFieldName "textb_1_data";
  57.   FDXFieldType "WString";
  58.   ResID 101;
  59.   DesignName textb_1;
  60.   TabIndex 0;
  61.   DesignRect 10,5,240,215;
  62.  @end;
  63.  
  64.  @begin Object "WCommandButton"
  65.   WSChild 1;
  66.   WSMaximizeBox 1;
  67.   WSTabStop 1;
  68.   WSVisible 1;
  69.   Pressed "0";
  70.   FDXFieldName "cb_1_data";
  71.   FDXFieldType "WBool";
  72.   Text "&Help";
  73.   @begin Event "Click"
  74.    GencodeSrcLine 197;
  75.    FunctionName "WinExcel70Tips::cb_Excel70Tips_help_Click";
  76.   @end;
  77.   ResID 102;
  78.   DesignName cb_Excel70Tips_help;
  79.   TabIndex 1;
  80.   DesignRect 205,225,46,14;
  81.  @end;
  82.  
  83.  @begin HPPPrefixBlock
  84. @begin-code HPPPrefix
  85.  
  86. // Declarations added here will be included at the top of the .HPP file
  87.  
  88. @end-code;
  89.   GencodeSrcLine 10;
  90.  @end;
  91.  
  92.  @begin CPPPrefixBlock
  93. @begin-code CPPPrefix
  94.  
  95. // Code added here will be included at the top of the .CPP file
  96.  
  97. static WChar *Tips[]={
  98.     "- This example uses the Intersolv 'OEM 2.12 32-Bit Excel5WorkBook'",
  99.     "  ODBC driver. This driver can be used with Microsoft Excel",
  100.     "  spreadsheets created in version 5 to 7 inclusive. The spreadsheet",
  101.     "  in this example was created in Excel 7.0 with Windows 95",
  102.     "",
  103.     "- The Intersolv Excel driver does not support bound updates.",
  104.     "  That's the reason why the rows appear as read-only.",
  105.     "  You must execute Insert and Update statements to change",
  106.     "  data in tables.",
  107.     "",
  108.     "- Use named lists to create tables in your spreadsheet.",
  109.     "  You can have more than one table in your spreadsheet.",
  110.     "",
  111.     "- Do not leave Excel open on your XLS file when you are connecting",
  112.     "  to it. An ODBC error is reported when the XLS file is open in Excel.",
  113.     "",
  114.     "- The Intersolv Excel driver converts table names to upper case.",
  115.     "  Either enter the name of your named lists in Excel in upper case, or",
  116.     "  surround the table names in your query with '`' (back quote) characters.",
  117.     "",
  118.     "- The Database Workbook field in the setup dialog of the ODBC",
  119.     "  Administrator for the Intersolv Excel 5.0 driver does not work as",
  120.     "  expected. If specified, a dialog still comes up on connecting which",
  121.     "  asks for the Excel file (but it will be initialized to the value",
  122.     "  specified in the Database workbook field). To avoid this, set the",
  123.     "  connection parameter for the transaction object in Optima:",
  124.     "  database=<path_to_excel_file>.",
  125.     "",
  126.     "- All columns will display in the text box as strings rather than its",
  127.     "  native type since text box can only display strings.",
  128.     "",
  129.     "- The Intersolv Excel driver does not contain enough ODBC 2.0 support",
  130.     "  to enable the Optima++ SQL query editor to work properly. Queries",
  131.     "  can be entered manually and tested in the properties page of the",
  132.     "  query object.",
  133.     
  134.     NULL,
  135. };
  136.     
  137.  
  138. //  Include definitions for resources.
  139. #include "WRes.h"
  140. #include "applic.hpp"
  141.  
  142. @end-code;
  143.   GencodeSrcLine 10;
  144.  @end;
  145.  
  146.  @begin ClassContentsBlock
  147. @begin-code ClassContents
  148.  
  149.     public:
  150.         // add your public instance data here
  151.     private:
  152.         // add your private instance data here
  153.     protected:
  154.         // add your protected instance data here
  155.  
  156. @end-code;
  157.   GencodeSrcLine 44;
  158.  @end;
  159.  
  160. @begin-code GeneratedClassContents
  161.  
  162.         WinExcel70Tips();
  163.         ~WinExcel70Tips();
  164.  
  165. @end-code;
  166.  
  167. @begin-code Code "WinExcel70Tips::WinExcel70Tips()"
  168.  
  169. WinExcel70Tips::WinExcel70Tips()
  170. {
  171.     
  172. }
  173.  
  174. @end-code;
  175.  
  176. @begin-code Code "WinExcel70Tips::~WinExcel70Tips()"
  177.  
  178. WinExcel70Tips::~WinExcel70Tips()
  179. {
  180.     
  181. }
  182.  
  183. @end-code;
  184.  
  185. @begin-code Code "WinExcel70Tips::WinExcel70Tips_Create"
  186.  
  187. WBool WinExcel70Tips::WinExcel70Tips_Create(
  188.     WObject *               source,
  189.     WCreateEventData *      event )
  190. {
  191.     int                     i;
  192.     WString                 str;
  193.     
  194.     for( i = 0; Tips[i] != NULL; ++i ) {
  195.         str.Concatf( "%s\r\n", Tips[i] );
  196.     }
  197.     textb_1->SetText( str );
  198.     
  199.     return FALSE;
  200. }
  201.  
  202. @end-code;
  203.  
  204. @begin-code Code "WinExcel70Tips::cb_Excel70Tips_help_Click"
  205.  
  206. WBool WinExcel70Tips::cb_Excel70Tips_help_Click(
  207.     WObject *           source,
  208.     WEventData *        event )
  209. {
  210.     Application->InvokeHelp( this, WHelpContents, 0, "woxls509.hlp", GetHandle() );
  211.     
  212.     return FALSE;
  213. }
  214.  
  215. @end-code;
  216. @end;
  217.