FrymasterVB/Cmdproc-2.frm.md

52 lines
1.3 KiB
Markdown

# Cmdproc-2 Form Documentation
## Overview
This is a Visual Basic form application for handling queue test messages and file operations.
## Form Controls
- **Status Bar** - Displays current operation status
- **Command Buttons**:
- PrintText - Generates text print command
- Move Ref - Generates reference move command
- Wire Diag - Generates wire diagram command
- Send Command - Sends the generated command
- Cancel - Hides the form
- Move Back/In/Out - File movement commands
- Print File - Generates print command
## Input Fields
- **User Name** - Username for operations (default: FEDUCIA)
- **File To Act On** - Target file identifier
- **Printer Name** - Output printer selection
- **Command Text** - Generated command string
## Command Format
Commands are generated with the following formats:
### Print/Wire Commands (P,W)
[P/W][Part(8)][Printer(10)][Banner(10)][Date(14)][ProductNo(15)][Type(1)]
### Move Commands (I,O,B,R)
[Command][Part(8)][ProductNo(15)][Banner(10)][Part(8)][Date(14)]
### IE Move Command (E)
[E][Part(8)][ProductNo(15)][Banner(10)][IEDir(10)][Date(14)]
### Text Print Command (T)
[T][Part(10)][Printer(10)]
## Key Functions
- `MakeCmd$()` - Generates formatted command strings
- Command processing via INCOME file
- Printer list management
- Date/time stamping of operations