home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / Share / Java / ScriptBuilder / NOSB30_TRIAL.exe / data1.cab / Program_Files / scriptlib3.sbl / ROOT52 / DATA
Unknown  |  1998-10-05  |  2.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file SIMH tape data default (weak)
99% file data default
100% TrID LTAC compressed audio (v1.61) default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 10 00 00 00 44 61 74 61 | 20 43 6f 6e 6e 65 63 74 |....Data| Connect|
|00000010| 69 6f 6e 73 10 00 00 00 | 44 61 74 61 20 43 6f 6e |ions....|Data Con|
|00000020| 6e 65 63 74 69 6f 6e 73 | 05 00 00 00 4c 6f 74 75 |nections|....Lotu|
|00000030| 73 42 00 00 00 43 6f 6e | 6e 65 63 74 73 20 74 6f |sB...Con|nects to|
|00000040| 20 61 6e 20 4f 44 42 43 | 20 64 61 74 61 20 73 6f | an ODBC| data so|
|00000050| 75 72 63 65 20 75 73 69 | 6e 67 20 74 68 65 20 4c |urce usi|ng the L|
|00000060| 6f 74 75 73 53 63 72 69 | 70 74 3a 20 44 61 74 61 |otusScri|pt: Data|
|00000070| 20 4f 62 6a 65 63 74 b4 | 08 00 00 53 75 62 20 49 | Object.|...Sub I|
|00000080| 6e 69 74 69 61 6c 69 7a | 65 0d 0a 0d 0a 55 73 65 |nitializ|e....Use|
|00000090| 6c 73 78 20 22 2a 4c 53 | 58 4f 44 42 43 22 0d 0a |lsx "*LS|XODBC"..|
|000000a0| 0d 0a 25 52 45 4d 0d 0a | 4e 41 4d 45 3a 20 44 61 |..%REM..|NAME: Da|
|000000b0| 74 61 20 43 6f 6e 6e 65 | 63 74 69 6f 6e 73 0d 0a |ta Conne|ctions..|
|000000c0| 0d 0a 44 45 53 43 3a 20 | 54 68 69 73 20 73 63 72 |..DESC: |This scr|
|000000d0| 69 70 74 20 69 73 20 61 | 6e 20 65 78 61 6d 70 6c |ipt is a|n exampl|
|000000e0| 65 20 6f 66 20 68 6f 77 | 20 74 6f 20 63 6f 6e 6e |e of how| to conn|
|000000f0| 65 63 74 20 74 6f 20 61 | 6e 20 4f 44 42 43 20 64 |ect to a|n ODBC d|
|00000100| 61 74 61 20 73 6f 75 72 | 63 65 20 75 73 69 6e 67 |ata sour|ce using|
|00000110| 20 74 68 65 20 4c 6f 74 | 75 73 53 63 72 69 70 74 | the Lot|usScript|
|00000120| 3a 20 44 61 74 61 20 4f | 62 6a 65 63 74 2e 0d 0a |: Data O|bject...|
|00000130| 0d 0a 55 53 41 47 45 3a | 20 43 6f 70 79 20 69 6e |..USAGE:| Copy in|
|00000140| 74 6f 20 61 20 44 6f 6d | 69 6e 6f 20 61 67 65 6e |to a Dom|ino agen|
|00000150| 74 20 6f 72 20 75 73 65 | 20 74 68 65 20 46 69 6c |t or use| the Fil|
|00000160| 65 20 49 6d 70 6f 72 74 | 20 63 6f 6d 6d 61 6e 64 |e Import| command|
|00000170| 20 74 6f 20 69 6e 73 65 | 72 74 20 74 68 65 20 74 | to inse|rt the t|
|00000180| 65 78 74 20 66 69 6c 65 | 2e 0d 0a 0d 0a 50 4c 41 |ext file|.....PLA|
|00000190| 54 46 4f 52 4d 53 3a 20 | 4c 6f 74 75 73 20 44 6f |TFORMS: |Lotus Do|
|000001a0| 6d 69 6e 6f 20 53 65 72 | 76 65 72 20 34 2e 35 20 |mino Ser|ver 4.5 |
|000001b0| 61 6e 64 20 68 69 67 68 | 65 72 0d 0a 0d 0a 25 45 |and high|er....%E|
|000001c0| 4e 44 20 52 45 4d 0d 0a | 20 20 20 20 20 43 6f 6e |ND REM..| Con|
|000001d0| 73 74 20 44 41 54 41 53 | 4f 55 52 43 45 20 3d 20 |st DATAS|OURCE = |
|000001e0| 22 64 62 4e 61 6d 65 22 | 20 20 20 20 20 27 72 65 |"dbName"| 're|
|000001f0| 70 6c 61 63 65 20 77 69 | 74 68 20 74 68 65 20 6e |place wi|th the n|
|00000200| 61 6d 65 20 6f 66 20 79 | 6f 75 72 20 64 61 74 61 |ame of y|our data|
|00000210| 20 73 6f 75 72 63 65 2e | 0d 0a 20 20 20 20 20 43 | source.|.. C|
|00000220| 6f 6e 73 74 20 53 51 4c | 51 55 45 52 59 20 3d 20 |onst SQL|QUERY = |
|00000230| 22 53 65 6c 65 63 74 20 | 2a 20 66 72 6f 6d 20 64 |"Select |* from d|
|00000240| 62 4e 61 6d 65 22 20 20 | 20 20 20 27 72 65 70 6c |bName" | 'repl|
|00000250| 61 63 65 20 77 69 74 68 | 20 79 6f 75 72 20 6f 77 |ace with| your ow|
|00000260| 6e 20 71 75 65 72 79 2e | 0d 0a 20 20 20 20 20 44 |n query.|.. D|
|00000270| 69 6d 20 73 20 41 73 20 | 4e 65 77 20 4e 6f 74 65 |im s As |New Note|
|00000280| 73 53 65 73 73 69 6f 6e | 0d 0a 20 20 20 20 20 44 |sSession|.. D|
|00000290| 69 6d 20 63 6f 6e 20 41 | 73 20 4e 65 77 20 4f 44 |im con A|s New OD|
|000002a0| 42 43 43 6f 6e 6e 65 63 | 74 69 6f 6e 0d 0a 20 20 |BCConnec|tion.. |
|000002b0| 20 20 20 44 69 6d 20 71 | 72 79 20 41 73 20 4e 65 | Dim q|ry As Ne|
|000002c0| 77 20 4f 44 42 43 51 75 | 65 72 79 0d 0a 20 20 20 |w ODBCQu|ery.. |
|000002d0| 20 20 44 69 6d 20 72 65 | 73 20 41 73 20 4e 65 77 | Dim re|s As New|
|000002e0| 20 4f 44 42 43 52 65 73 | 75 6c 74 53 65 74 0d 0a | ODBCRes|ultSet..|
|000002f0| 20 20 20 20 20 44 69 6d | 20 64 6f 63 20 41 73 20 | Dim| doc As |
|00000300| 4e 6f 74 65 73 44 6f 63 | 75 6d 65 6e 74 0d 0a 20 |NotesDoc|ument.. |
|00000310| 20 20 20 20 49 66 20 43 | 6f 6e 2e 43 6f 6e 6e 65 | If C|on.Conne|
|00000320| 63 74 54 6f 28 44 41 54 | 41 53 4f 55 52 43 45 29 |ctTo(DAT|ASOURCE)|
|00000330| 20 54 68 65 6e 0d 0a 20 | 20 20 20 20 20 20 20 20 | Then.. | |
|00000340| 20 53 65 74 20 51 72 79 | 2e 43 6f 6e 6e 65 63 74 | Set Qry|.Connect|
|00000350| 69 6f 6e 20 3d 20 43 6f | 6e 0d 0a 20 20 20 20 20 |ion = Co|n.. |
|00000360| 45 6c 73 65 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |Else.. | |
|00000370| 65 72 72 6f 72 25 20 3d | 20 43 6f 6e 2e 47 65 74 |error% =| Con.Get|
|00000380| 45 72 72 6f 72 20 20 0d | 0a 20 20 20 20 20 20 20 |Error .|. |
|00000390| 20 20 20 6d 65 73 73 61 | 67 65 24 20 3d 20 43 6f | messa|ge$ = Co|
|000003a0| 6e 2e 47 65 74 45 72 72 | 6f 72 4d 65 73 73 61 67 |n.GetErr|orMessag|
|000003b0| 65 28 65 72 72 6f 72 25 | 29 20 0d 0a 20 20 20 20 |e(error%|) .. |
|000003c0| 20 20 20 20 20 20 50 72 | 69 6e 74 20 22 43 61 6e | Pr|int "Can|
|000003d0| 6e 6f 74 20 63 6f 6e 6e | 65 63 74 20 74 6f 20 62 |not conn|ect to b|
|000003e0| 61 63 6b 20 65 6e 64 20 | 73 79 73 74 65 6d 2e 20 |ack end |system. |
|000003f0| 43 68 65 63 6b 20 79 6f | 75 72 20 4f 44 42 43 20 |Check yo|ur ODBC |
|00000400| 6e 61 6d 65 2e 20 45 72 | 72 6f 72 20 6d 65 73 73 |name. Er|ror mess|
|00000410| 61 67 65 3a 20 22 20 2b | 20 6d 65 73 73 61 67 65 |age: " +| message|
|00000420| 24 0d 0a 20 20 20 20 20 | 20 20 20 20 20 45 78 69 |$.. | Exi|
|00000430| 74 20 53 75 62 0d 0a 20 | 20 20 20 20 45 6e 64 20 |t Sub.. | End |
|00000440| 49 66 0d 0a 20 20 20 20 | 20 51 72 79 2e 53 51 4c |If.. | Qry.SQL|
|00000450| 20 3d 20 53 51 4c 51 55 | 45 52 59 0d 0a 20 20 20 | = SQLQU|ERY.. |
|00000460| 20 20 53 65 74 20 52 65 | 73 2e 51 75 65 72 79 20 | Set Re|s.Query |
|00000470| 3d 20 51 72 79 20 20 20 | 20 20 20 20 20 20 20 20 |= Qry | |
|00000480| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004a0| 20 27 70 6f 70 6c 75 6c | 61 74 65 73 20 74 68 65 | 'poplul|ates the|
|000004b0| 20 71 75 65 72 79 20 77 | 69 74 68 20 74 68 65 20 | query w|ith the |
|000004c0| 6d 65 74 61 64 61 74 61 | 0d 0a 20 20 20 20 20 52 |metadata|.. R|
|000004d0| 65 73 2e 45 78 65 63 75 | 74 65 20 20 20 20 20 20 |es.Execu|te |
|000004e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000510| 20 20 20 20 20 20 27 72 | 75 6e 73 20 74 68 65 20 | 'r|uns the |
|00000520| 71 75 65 72 79 0d 0a 20 | 20 20 20 20 63 6f 6c 75 |query.. | colu|
|00000530| 6d 6e 73 20 3d 20 72 65 | 73 2e 6e 75 6d 43 6f 6c |mns = re|s.numCol|
|00000540| 75 6d 6e 73 20 20 20 20 | 20 20 20 20 20 20 20 20 |umns | |
|00000550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000560| 20 20 20 20 27 67 65 74 | 73 20 74 68 65 20 6e 75 | 'get|s the nu|
|00000570| 6d 62 65 72 20 6f 66 20 | 63 6f 6c 75 6d 6e 73 0d |mber of |columns.|
|00000580| 0a 20 27 20 54 68 69 73 | 20 6e 65 78 74 20 70 61 |. ' This| next pa|
|00000590| 72 74 20 62 65 67 69 6e | 73 20 74 6f 20 73 65 6e |rt begin|s to sen|
|000005a0| 64 20 48 54 4d 4c 20 74 | 6f 20 74 68 65 20 62 72 |d HTML t|o the br|
|000005b0| 6f 77 73 65 72 2e 0d 0a | 20 20 20 20 20 50 72 69 |owser...| Pri|
|000005c0| 6e 74 20 22 3c 48 31 3e | 52 65 73 75 6c 74 73 20 |nt "<H1>|Results |
|000005d0| 6f 66 20 71 75 65 72 79 | 3c 2f 48 31 3e 22 0d 0a |of query|</H1>"..|
|000005e0| 27 54 68 69 73 20 70 61 | 72 74 20 62 65 67 69 6e |'This pa|rt begin|
|000005f0| 73 20 74 6f 20 62 75 69 | 6c 64 20 74 68 65 20 74 |s to bui|ld the t|
|00000600| 61 62 6c 65 20 74 6f 20 | 68 6f 6c 64 20 74 68 65 |able to |hold the|
|00000610| 20 72 65 73 75 6c 74 73 | 20 6f 66 20 74 68 65 20 | results| of the |
|00000620| 71 75 65 72 79 2e 0d 0a | 20 20 20 20 20 50 72 69 |query...| Pri|
|00000630| 6e 74 20 22 3c 54 41 42 | 4c 45 20 42 4f 52 44 45 |nt "<TAB|LE BORDE|
|00000640| 52 3d 31 20 43 45 4c 4c | 50 41 44 44 49 4e 47 3d |R=1 CELL|PADDING=|
|00000650| 33 3e 22 20 0d 0a 20 20 | 20 20 20 50 72 69 6e 74 |3>" .. | Print|
|00000660| 20 22 3c 54 52 3e 22 20 | 0d 0a 20 20 20 20 20 46 | "<TR>" |.. F|
|00000670| 6f 72 20 69 20 3d 20 31 | 20 54 6f 20 63 6f 6c 75 |or i = 1| To colu|
|00000680| 6d 6e 73 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |mns | |
|00000690| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006b0| 20 20 20 20 27 6c 6f 6f | 70 20 74 68 72 6f 75 67 | 'loo|p throug|
|000006c0| 68 20 66 69 65 6c 64 6e | 61 6d 65 73 20 61 6e 64 |h fieldn|ames and|
|000006d0| 20 73 65 6e 64 20 74 6f | 20 74 61 62 6c 65 20 68 | send to| table h|
|000006e0| 65 61 64 65 72 0d 0a 20 | 20 20 20 20 20 20 20 20 |eader.. | |
|000006f0| 20 50 72 69 6e 74 20 22 | 3c 54 48 3e 22 20 0d 0a | Print "|<TH>" ..|
|00000700| 20 20 20 20 20 20 20 20 | 20 20 50 72 69 6e 74 20 | | Print |
|00000710| 72 65 73 2e 66 69 65 6c | 64 6e 61 6d 65 28 69 29 |res.fiel|dname(i)|
|00000720| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 50 72 69 6e |.. | Prin|
|00000730| 74 20 22 3c 2f 54 48 3e | 22 20 0d 0a 20 20 20 20 |t "</TH>|" .. |
|00000740| 20 4e 65 78 74 20 0d 0a | 20 20 20 20 20 50 72 69 | Next ..| Pri|
|00000750| 6e 74 20 22 3c 2f 54 52 | 3e 22 20 0d 0a 20 20 20 |nt "</TR|>" .. |
|00000760| 20 20 44 6f 20 20 20 20 | 20 20 20 20 20 20 20 20 | Do | |
|00000770| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 27 | | '|
|00000790| 6c 6f 6f 70 20 74 68 72 | 6f 75 67 68 20 64 61 74 |loop thr|ough dat|
|000007a0| 61 20 61 6e 64 20 70 75 | 74 20 69 6e 74 6f 20 74 |a and pu|t into t|
|000007b0| 61 62 6c 65 20 72 6f 77 | 73 0d 0a 20 20 20 20 20 |able row|s.. |
|000007c0| 43 61 6c 6c 20 72 65 73 | 2e 4e 65 78 74 52 6f 77 |Call res|.NextRow|
|000007d0| 28 29 20 20 20 20 20 20 | 20 20 27 4e 65 78 74 52 |() | 'NextR|
|000007e0| 6f 77 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 66 |ow retur|ns the f|
|000007f0| 69 72 73 74 20 72 6f 77 | 2c 20 74 68 65 20 66 69 |irst row|, the fi|
|00000800| 72 73 74 20 74 69 6d 65 | 20 74 68 72 6f 75 67 68 |rst time| through|
|00000810| 20 74 68 65 20 6c 6f 6f | 70 20 0d 0a 20 20 20 20 | the loo|p .. |
|00000820| 20 50 72 69 6e 74 20 22 | 3c 54 52 3e 22 20 0d 0a | Print "|<TR>" ..|
|00000830| 20 20 20 20 20 46 6f 72 | 20 6b 20 3d 20 31 20 54 | For| k = 1 T|
|00000840| 6f 20 63 6f 6c 75 6d 6e | 73 0d 0a 20 20 20 20 20 |o column|s.. |
|00000850| 20 20 20 20 20 50 72 69 | 6e 74 20 22 3c 54 44 3e | Pri|nt "<TD>|
|00000860| 22 20 0d 0a 20 20 20 20 | 20 20 20 20 20 20 50 72 |" .. | Pr|
|00000870| 69 6e 74 20 72 65 73 2e | 67 65 74 76 61 6c 75 65 |int res.|getvalue|
|00000880| 28 6b 29 0d 0a 20 20 20 | 20 20 20 20 20 20 20 50 |(k).. | P|
|00000890| 72 69 6e 74 20 22 3c 2f | 54 44 3e 22 20 0d 0a 20 |rint "</|TD>" .. |
|000008a0| 20 20 20 20 4e 65 78 74 | 0d 0a 20 20 20 20 20 50 | Next|.. P|
|000008b0| 72 69 6e 74 20 22 3c 2f | 54 52 3e 22 20 0d 0a 4c |rint "</|TR>" ..L|
|000008c0| 6f 6f 70 20 55 6e 74 69 | 6c 20 72 65 73 2e 49 73 |oop Unti|l res.Is|
|000008d0| 45 6e 64 4f 66 44 61 74 | 61 0d 0a 50 72 69 6e 74 |EndOfDat|a..Print|
|000008e0| 20 22 3c 2f 54 41 42 4c | 45 3e 22 0d 0a 50 72 69 | "</TABL|E>"..Pri|
|000008f0| 6e 74 20 22 3c 2f 42 4f | 44 59 3e 22 20 20 20 20 |nt "</BO|DY>" |
|00000900| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000910| 27 65 6e 64 20 6f 66 20 | 48 54 4d 4c 20 6f 75 74 |'end of |HTML out|
|00000920| 70 75 74 2e 0d 0a 45 6e | 64 20 53 75 62 0d 0a 03 |put...En|d Sub...|
|00000930| 00 00 00 4e 2f 41 03 00 | 00 00 4e 2f 41 |...N/A..|..N/A |
+--------+-------------------------+-------------------------+--------+--------+