home *** CD-ROM | disk | FTP | other *** search
Unknown | 1998-10-05 | 1.5 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.
Confidence | Program | Detection | Match Type | Support
|
---|
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 47 65 74 4e | 65 78 74 50 72 6f 6a 65 |....GetN|extProje|
|00000010| 63 74 49 44 10 00 00 00 | 47 65 74 4e 65 78 74 50 |ctID....|GetNextP|
|00000020| 72 6f 6a 65 63 74 49 44 | 08 00 00 00 4c 69 76 65 |rojectID|....Live|
|00000030| 57 69 72 65 39 00 00 00 | 52 65 74 75 72 6e 73 20 |Wire9...|Returns |
|00000040| 74 68 65 20 6e 65 78 74 | 20 61 76 61 69 6c 61 62 |the next| availab|
|00000050| 6c 65 20 69 64 65 6e 74 | 69 66 69 65 72 20 66 6f |le ident|ifier fo|
|00000060| 72 20 74 68 65 20 6e 65 | 78 74 20 72 65 63 6f 72 |r the ne|xt recor|
|00000070| 64 91 05 00 00 2f 2a 20 | 3d 3d 3d 3d 3d 3d 3d 3d |d..../* |========|
|00000080| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 0d 0a |========|======..|
|000000c0| 46 55 4e 43 54 49 4f 4e | 3a 09 47 65 74 4e 65 78 |FUNCTION|:.GetNex|
|000000d0| 74 50 72 6f 6a 65 63 74 | 49 44 20 0d 0a 20 0d 0a |tProject|ID .. ..|
|000000e0| 49 4e 50 55 54 3a 20 09 | 09 64 62 54 61 62 6c 65 |INPUT: .|.dbTable|
|000000f0| 20 28 73 74 72 69 6e 67 | 29 20 3a 20 74 68 65 20 | (string|) : the |
|00000100| 73 74 72 69 6e 67 20 69 | 6e 64 69 63 61 74 69 6e |string i|ndicatin|
|00000110| 67 20 77 68 69 63 68 20 | 74 61 62 6c 65 27 73 20 |g which |table's |
|00000120| 49 44 20 73 68 6f 75 6c | 64 20 62 65 20 72 65 74 |ID shoul|d be ret|
|00000130| 72 69 65 76 65 64 0d 0a | 09 09 09 09 09 09 09 09 |rieved..|........|
|00000140| 09 09 20 66 72 6f 6d 20 | 74 68 65 20 61 73 73 6f |.. from |the asso|
|00000150| 63 69 61 74 69 76 65 20 | 61 72 72 61 79 2c 20 70 |ciative |array, p|
|00000160| 72 6f 6a 65 63 74 2e 6c | 61 73 74 49 44 5b 5d 0d |roject.l|astID[].|
|00000170| 0a 0d 0a 52 45 54 55 52 | 4e 53 3a 09 09 54 68 65 |...RETUR|NS:..The|
|00000180| 20 6e 65 78 74 20 61 76 | 61 69 6c 61 62 6c 65 20 | next av|ailable |
|00000190| 75 6e 69 71 75 65 20 69 | 64 65 6e 74 69 66 69 65 |unique i|dentifie|
|000001a0| 72 20 66 6f 72 20 61 20 | 72 65 63 6f 72 64 20 69 |r for a |record i|
|000001b0| 6e 20 64 62 54 61 62 6c | 65 3b 0d 0a 09 09 09 09 |n dbTabl|e;......|
|000001c0| 2d 31 2c 20 69 66 20 61 | 6e 20 65 72 72 6f 72 20 |-1, if a|n error |
|000001d0| 6f 63 63 75 72 72 65 64 | 20 20 0d 0a 0d 0a 44 45 |occurred| ....DE|
|000001e0| 53 43 3a 09 09 09 54 68 | 69 73 20 66 75 6e 63 74 |SC:...Th|is funct|
|000001f0| 69 6f 6e 20 72 65 74 75 | 72 6e 73 20 74 68 65 20 |ion retu|rns the |
|00000200| 6e 65 78 74 20 61 76 61 | 69 6c 61 62 6c 65 20 69 |next ava|ilable i|
|00000210| 64 65 6e 74 69 66 69 65 | 72 2c 20 64 62 46 69 65 |dentifie|r, dbFie|
|00000220| 6c 64 2c 20 66 6f 72 0d | 0a 09 09 09 09 74 68 65 |ld, for.|.....the|
|00000230| 20 6e 65 78 74 20 72 65 | 63 6f 72 64 20 69 6e 20 | next re|cord in |
|00000240| 64 62 54 61 62 6c 65 2e | 20 20 49 74 20 73 65 74 |dbTable.| It set|
|00000250| 73 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 70 |s the va|lue of p|
|00000260| 72 6f 6a 65 63 74 2e 6c | 61 73 74 49 44 20 65 71 |roject.l|astID eq|
|00000270| 75 61 6c 20 74 6f 0d 0a | 09 09 09 09 74 68 69 73 |ual to..|....this|
|00000280| 20 76 61 6c 75 65 2c 20 | 74 6f 20 6d 61 72 6b 20 | value, |to mark |
|00000290| 69 74 20 61 73 20 61 20 | 74 61 6b 65 6e 2e 20 20 |it as a |taken. |
|000002a0| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 69 73 |This fun|ction is|
|000002b0| 20 6f 6e 6c 79 20 75 73 | 65 66 75 6c 20 69 66 20 | only us|eful if |
|000002c0| 64 62 46 69 65 6c 64 20 | 0d 0a 09 09 09 09 69 73 |dbField |......is|
|000002d0| 20 74 68 65 20 75 6e 69 | 71 75 65 20 69 64 65 6e | the uni|que iden|
|000002e0| 74 69 66 69 65 72 20 6f | 66 20 74 68 65 20 74 61 |tifier o|f the ta|
|000002f0| 62 6c 65 20 61 6e 64 20 | 68 6f 6c 64 73 20 6f 6e |ble and |holds on|
|00000300| 6c 79 20 69 6e 74 65 67 | 65 72 20 76 61 6c 75 65 |ly integ|er value|
|00000310| 73 2e 20 20 54 79 70 69 | 63 61 6c 6c 79 2c 0d 0a |s. Typi|cally,..|
|00000320| 09 09 09 09 79 6f 75 20 | 77 69 6c 6c 20 75 73 65 |....you |will use|
|00000330| 20 74 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 69 | this fu|nction i|
|00000340| 6e 20 63 6f 6e 6a 75 6e | 63 74 69 6f 6e 20 77 69 |n conjun|ction wi|
|00000350| 74 68 20 47 65 74 4c 61 | 73 74 50 72 6f 6a 65 63 |th GetLa|stProjec|
|00000360| 74 49 44 20 74 6f 20 74 | 72 61 63 6b 0d 0a 09 09 |tID to t|rack....|
|00000370| 09 09 75 6e 69 71 75 65 | 20 69 64 65 6e 74 69 66 |..unique| identif|
|00000380| 69 65 72 73 20 66 6f 72 | 20 74 61 62 6c 65 73 20 |iers for| tables |
|00000390| 61 63 72 6f 73 73 20 79 | 6f 75 72 20 61 70 70 6c |across y|our appl|
|000003a0| 69 63 61 74 69 6f 6e 2e | 0d 0a 09 09 09 09 0d 0a |ication.|........|
|000003b0| 50 4c 41 54 46 4f 52 4d | 53 3a 09 4e 65 74 73 63 |PLATFORM|S:.Netsc|
|000003c0| 61 70 65 20 45 6e 74 65 | 72 70 72 69 73 65 20 53 |ape Ente|rprise S|
|000003d0| 65 72 76 65 72 20 33 2e | 30 0d 0a 3d 3d 3d 3d 3d |erver 3.|0..=====|
|000003e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000003f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000400| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000410| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000420| 3d 20 2a 2f 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 47 |= */..fu|nction G|
|00000430| 65 74 4e 65 78 74 50 72 | 6f 6a 65 63 74 49 44 28 |etNextPr|ojectID(|
|00000440| 20 64 62 54 61 62 6c 65 | 20 29 20 7b 0d 0a 09 76 | dbTable| ) {...v|
|00000450| 61 72 20 6e 65 78 74 49 | 44 20 3d 20 2d 31 3b 0d |ar nextI|D = -1;.|
|00000460| 0a 09 2f 2f 20 56 61 6c | 69 64 61 74 65 20 70 61 |..// Val|idate pa|
|00000470| 72 61 6d 65 74 65 72 73 | 20 76 61 6c 75 65 73 0d |rameters| values.|
|00000480| 0a 09 69 66 20 28 74 79 | 70 65 6f 66 28 64 62 54 |..if (ty|peof(dbT|
|00000490| 61 62 6c 65 29 20 3d 3d | 20 74 79 70 65 6f 66 28 |able) ==| typeof(|
|000004a0| 76 6f 69 64 28 30 29 29 | 20 7c 7c 20 64 62 54 61 |void(0))| || dbTa|
|000004b0| 62 6c 65 20 3d 3d 20 6e | 75 6c 6c 29 0d 0a 09 09 |ble == n|ull)....|
|000004c0| 72 65 74 75 72 6e 20 6e | 75 6c 6c 3b 0d 0a 0d 0a |return n|ull;....|
|000004d0| 09 69 66 20 28 74 79 70 | 65 6f 66 28 70 72 6f 6a |.if (typ|eof(proj|
|000004e0| 65 63 74 2e 6c 61 73 74 | 49 44 29 20 21 3d 20 74 |ect.last|ID) != t|
|000004f0| 79 70 65 6f 66 28 76 6f | 69 64 28 30 29 29 20 26 |ypeof(vo|id(0)) &|
|00000500| 26 20 70 72 6f 6a 65 63 | 74 2e 6c 61 73 74 49 44 |& projec|t.lastID|
|00000510| 20 21 3d 20 6e 75 6c 6c | 29 20 7b 0d 0a 09 2f 2f | != null|) {...//|
|00000520| 20 4c 6f 63 6b 20 74 68 | 65 20 70 72 6f 6a 65 63 | Lock th|e projec|
|00000530| 74 20 6f 62 6a 65 63 74 | 20 74 6f 20 70 72 65 76 |t object| to prev|
|00000540| 65 6e 74 20 63 6f 6e 63 | 75 72 72 65 6e 74 20 61 |ent conc|urrent a|
|00000550| 63 63 65 73 73 0d 0a 09 | 09 70 72 6f 6a 65 63 74 |ccess...|.project|
|00000560| 2e 6c 6f 63 6b 28 29 3b | 0d 0a 09 09 09 76 61 72 |.lock();|.....var|
|00000570| 20 6e 65 78 74 49 44 20 | 3d 20 70 72 6f 6a 65 63 | nextID |= projec|
|00000580| 74 2e 6c 61 73 74 49 44 | 5b 64 62 54 61 62 6c 65 |t.lastID|[dbTable|
|00000590| 5d 20 2b 20 31 3b 09 0d | 0a 09 09 09 70 72 6f 6a |] + 1;..|....proj|
|000005a0| 65 63 74 2e 6c 61 73 74 | 49 44 5b 64 62 54 61 62 |ect.last|ID[dbTab|
|000005b0| 6c 65 5d 20 3d 20 6e 65 | 78 74 49 44 3b 0d 0a 09 |le] = ne|xtID;...|
|000005c0| 09 70 72 6f 6a 65 63 74 | 2e 75 6e 6c 6f 63 6b 28 |.project|.unlock(|
|000005d0| 29 3b 0d 0a 09 7d 09 09 | 0d 0a 09 72 65 74 75 72 |);...}..|...retur|
|000005e0| 6e 20 6e 65 78 74 49 44 | 3b 0d 0a 7d 20 2f 2f 20 |n nextID|;..} // |
|000005f0| 65 6e 64 20 47 65 74 4e | 65 78 74 50 72 6f 6a 65 |end GetN|extProje|
|00000600| 63 74 49 44 0d 0a 0e 00 | 00 00 33 2e 30 20 61 6e |ctID....|..3.0 an|
|00000610| 64 20 68 69 67 68 65 72 | 0e 00 00 00 33 2e 30 20 |d higher|....3.0 |
|00000620| 61 6e 64 20 68 69 67 68 | 65 72 |and high|er |
+--------+-------------------------+-------------------------+--------+--------+