× 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.


  • Subject: Re: Simple Subfile question
  • From: Phil Gregory <pgregory@xxxxxxxxxxx>
  • Date: Tue, 10 Apr 2001 13:03:13 -0400

On Mon, Apr 09, 2001 at 04:20:11PM -0500, Scott Klement wrote:
> Lets say I'd like to create a "subfile"-like list in VB.  I want a 
> screen layout like this:
> 
> Product Code  Description of Product  Quantity  Price  Error Messages
> 
> Now, product code, quantity and price all have to be changable by the
> user.   Description and Error Messages can't be changed by the user.
> There needs to be a way to scroll through a list of up to 500 items,
> including blank lines for new items to be added.
> 
> How the heck would you do this in VB?   A listbox won't work, since you
> can't change the data in a listbox.  a grid control might work, but I'm
> not sure that I'd be able to make some fields changable and some not.

That's how I'd do it (grid with entry inhibited on some columns) in
Delphi, my preferred application development langauge in Windows.  I'd say
that that particular approach is about on par with creating a subfile to
do the same thing in RPG.  The thing about subfiles, or so it seems to me,
is that they're so different.  Many other things in RPG (mostly in PRG IV)
are similar in concept to other procedural languages, but I don't know of
any other that uses something like subfiles.

I didn't have too much of a problem learning, them, though.  I went out
and got a book (_Essentials of Subfile Programming_ by Phil Levinson) and
learned from that.  (While mentally translating RPG III code into RPG IV.
Ick.)  Perhaps some of the people here can recommend other good books on
subfiles.
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.