Browse thread
[Caml-list] OCam'OLE pre.3b
-
Nicolas Cannasse
-
SooHyoung Oh
-
Nicolas Cannasse
- SooHyoung Oh
-
Nicolas Cannasse
-
SooHyoung Oh
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2002-09-10 (05:53) |
From: | SooHyoung Oh <shoh@d...> |
Subject: | Re: [Caml-list] OCam'OLE pre.3b |
Actually, I'm a novice on Visual Basic for Applications as well as Visual Basic. I tried to make button and check_box in excel application, but I can't find any function in excel.ml, excel.mli which make buttons, and button (except of Buttons.add) And I guessed some function's usage and made the folloing programs. It makes an error Fatal error: exception Ocamole.Com_error("IDispatch.GetIDsOfNames") =================== let app = IApplication.application_ (IApplication.create()) let books = Application_.get_workbooks app let book = Workbooks.add books let sheets = Workbook_.get_worksheets (Workbook.workbook_ book) let sheet = Worksheet.query ~unsafe:true (Sheets.get_item sheets ~index:(VT_INT 1)) let isheet = Worksheet.worksheet_ sheet let cboxes = CheckBoxes.query ~unsafe:true (Worksheet_.idispatch isheet) let test1 () = let cbox = CheckBoxes.add cboxes 50.0 50.0 300.0 400.0 in () let buttons = Buttons.query ~unsafe:true (Worksheet_.idispatch isheet) let test2 () = let but = Buttons.add buttons 50.0 50.0 300.0 400.0 in () --- SooHyoung Oh tel: 02)583-8709, 042)861-8649 cell. phone: 011-453-4303 web: http://www.duonix.com ----- Original Message ----- From: "Nicolas Cannasse" <warplayer@free.fr> To: "SooHyoung Oh" <shoh@duonix.com>; "OCaml" <caml-list@inria.fr> Sent: Monday, September 09, 2002 7:33 PM Subject: Re: [Caml-list] OCam'OLE pre.3b > > Can anyone give more complex example using Ocam'OLE > > which uses Excel's various components such as UserForm, Page, Text, Label, > > Button? > > You should look at Excel VBA samples/help. Then the OCaml usage should be > almost the same ( with an additional type-safety ). > > Regards, > Nicolas Cannasse > > ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners