home *** CD-ROM | disk | FTP | other *** search
/ PC Format Collection 48 / SENT14D.ISO / tech / delphi / disk15 / macros.pak / ID2NAME.MAC < prev    next >
Unknown  |  1995-08-24  |  606 b 

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
66% dexvert MacPaint Image (image/macPaint) ext Supported
1% dexvert Installer VISE Package (archive/installerVISE) ext Unsupported
1% dexvert Platinen Layout Programm Macro (other/platinenLayoutProgrammMacro) ext Unsupported
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 02 5b 06 54 4d 61 63 72 | 6f 06 00 08 46 69 6e 64 |.[.TMacr|o...Find|
|00000010| 42 79 49 64 4a 54 68 69 | 73 20 6d 61 63 72 6f 20 |ByIdJThi|s macro |
|00000020| 73 65 61 72 63 68 65 73 | 20 66 6f 72 20 61 20 72 |searches| for a r|
|00000030| 65 63 6f 72 64 20 62 61 | 73 65 64 20 6f 6e 20 61 |ecord ba|sed on a|
|00000040| 20 70 61 72 74 69 63 75 | 6c 61 72 20 65 6d 70 6c | particu|lar empl|
|00000050| 6f 79 65 65 20 69 64 20 | 6e 75 6d 62 65 72 2e d9 |oyee id |number..|
|00000060| 01 53 75 62 20 46 69 6e | 64 42 79 49 64 28 29 0d |.Sub Fin|dById().|
|00000070| 0a 20 20 53 65 61 72 63 | 68 24 20 3d 20 20 20 49 |. Searc|h$ = I|
|00000080| 6e 70 75 74 42 6f 78 24 | 28 22 45 6e 74 65 72 20 |nputBox$|("Enter |
|00000090| 45 6d 70 6c 6f 79 65 65 | 20 49 44 22 29 20 0d 0a |Employee| ID") ..|
|000000a0| 0d 0a 20 20 41 6c 6c 52 | 65 63 6f 72 64 73 20 3d |.. AllR|ecords =|
|000000b0| 20 52 65 63 6f 72 64 43 | 6f 75 6e 74 0d 0a 0d 0a | RecordC|ount....|
|000000c0| 20 20 47 65 74 52 61 6e | 64 6f 6d 28 31 29 0d 0a | GetRan|dom(1)..|
|000000d0| 0d 0a 20 20 46 6f 72 20 | 43 75 72 52 65 63 6f 72 |.. For |CurRecor|
|000000e0| 64 20 3d 20 31 20 74 6f | 20 41 6c 6c 52 65 63 6f |d = 1 to| AllReco|
|000000f0| 72 64 73 0d 0a 0d 0a 20 | 20 54 68 69 73 24 20 3d |rds.... | This$ =|
|00000100| 20 46 69 65 6c 64 24 28 | 20 22 45 4d 50 4c 59 45 | Field$(| "EMPLYE|
|00000110| 45 5f 49 44 22 29 0d 0a | 0d 0a 20 20 49 66 20 54 |E_ID")..|.. If T|
|00000120| 68 69 73 24 20 3d 20 52 | 54 72 69 6d 24 28 53 65 |his$ = R|Trim$(Se|
|00000130| 61 72 63 68 24 29 20 20 | 74 68 65 6e 20 0d 0a 20 |arch$) |then .. |
|00000140| 20 20 20 20 45 6d 70 6c | 6f 79 65 65 24 20 3d 20 | Empl|oyee$ = |
|00000150| 52 54 72 69 6d 24 28 46 | 69 65 6c 64 24 28 22 45 |RTrim$(F|ield$("E|
|00000160| 4d 50 5f 46 4e 41 4d 45 | 22 29 29 20 20 20 2b 20 |MP_FNAME|")) + |
|00000170| 22 20 22 2b 20 46 69 65 | 6c 64 28 22 45 4d 50 5f |" "+ Fie|ld("EMP_|
|00000180| 4c 4e 41 4d 45 22 29 0d | 0a 20 20 20 20 20 4d 73 |LNAME").|. Ms|
|00000190| 67 42 6f 78 20 22 54 68 | 65 20 45 6d 70 6c 6f 79 |gBox "Th|e Employ|
|000001a0| 65 65 20 57 69 74 68 20 | 54 68 61 74 20 6e 75 6d |ee With |That num|
|000001b0| 62 65 72 20 69 73 20 3a | 20 22 20 2b 20 45 6d 70 |ber is :| " + Emp|
|000001c0| 6c 6f 79 65 65 24 20 20 | 20 0d 0a 20 20 20 20 20 |loyee$ | .. |
|000001d0| 47 6f 74 6f 20 44 6f 6e | 65 20 20 0d 0a 20 20 20 |Goto Don|e .. |
|000001e0| 45 6e 64 20 49 66 20 20 | 0d 0a 20 20 47 65 74 4e |End If |.. GetN|
|000001f0| 65 78 74 0d 0a 20 20 4e | 65 78 74 20 43 75 72 52 |ext.. N|ext CurR|
|00000200| 65 63 6f 72 64 0d 0a 20 | 20 0d 0a 20 20 4d 73 67 |ecord.. | .. Msg|
|00000210| 42 6f 78 22 20 4e 6f 20 | 4d 61 74 63 68 20 46 6f |Box" No |Match Fo|
|00000220| 75 6e 64 22 0d 0a 0d 0a | 44 4f 4e 45 3a 0d 0a 0d |und"....|DONE:...|
|00000230| 0a 0d 0a 45 6e 64 20 53 | 75 62 ff ff 1e 43 3a 5c |...End S|ub...C:\|
|00000240| 52 50 54 53 4d 49 54 48 | 5c 4d 41 43 52 4f 53 5c |RPTSMITH|\MACROS\|
|00000250| 49 44 32 4e 41 4d 45 2e | 4d 41 43 00 00 5d |ID2NAME.|MAC..] |
+--------+-------------------------+-------------------------+--------+--------+