× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Yes, it sounds like you're using the right tool... The prompt override
program lets you determine what values are shown when a user prompts a
command parameter.

The "C" and "P" types tell the command choice program what kind of data to
return to the command processor. 

In "C" type, return up to 30 characters describing the parameter, for
example, "Available batches"
In "P" type, return up to 2000 characters describing the parameter choices,
for example, "BATCH1","BATCH2", etc.

When using the "P" type, are you populating the 2000 characters properly?
The 2000 character field has the following format:
Positions 1-2: number of entries following
Positions 3-1998: entries

An "entry" has the following format:
First 2 bytes: length of data following (per entry)
N bytes: entry.

For example, if I wanted to return a parameter list of "BATCH1","MY
BATCH","YOUR BATCH" then the 2000 characters look like this:

[3] - number of entries returned
[6]BATCH1 - entry 1
[8]MY BATCH - entry 2
[10]YOUR BATCH - entry 3

Much of the time the parameters are of the same size, I define a data
structure to help me out.

I have documented this, with examples, on my website. The direct link to my
command choice example is http://bb.blackrobes.net/viewtopic.php?t=4.

HTH,
Loyd

--  
Loyd Goodbar
Programmer/analyst
BorgWarner Incorporated
ETS/Water Valley
662-473-5713
lgoodbar@xxxxxxxxxxxxxx


-----Original Message-----
From: M. Lazarus [mailto:mlazarus@xxxxxxxx] 
Sent: Tuesday, October 21, 2003 12:51 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Command CHOICEPGM


  It's been a while since writing my last command definition choice program.

My question is:  What is the 'P' type for (position 21 of the first 
parm)?  I thought that it would be for the extended selection when pressing 
F4 in the field, but that does not seem to be the case.  Is that what a 
Prompt Override Program is for?

  Thanks.

  -mark

_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.