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



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Does the method need to return a Boolean? You might return 0 or '0' for
success, or another integer, or character containing an error
identifier. You might even return positive values for informational
messages, negative values for errors.

- --
Pete Hall
pete@xxxxxxxxxxxxxx

On 2011-02-02 07:11, David FOXWELL wrote:
Hi all,

A program displays 5 fields concerning a client's bank details. A procedure exists that accepts these details as a DS and checks each field.

eg:


D CheckBankDetails...
D PI N
D BankDetails likeds(refDS) const
D error like(refError)


/free
If BankDetails.AccountNumber <> etc
error = 'etc..'
return *off
endif

If BankDetails.BankCode <> etc
error = 'etc..'
return *off
endif
/end-free

Caller : IF not CheckBankDetails ( DSBank );
//Now what?
Endif;

On returning from this procedure, how can the display manager program position the cursor on the first incorrectly filled information using an indicator and DSPATR(PC)?



Thanks.



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk1JyfQACgkQXczQcKdXKg5/8gCfTmerSaNWgoGekJd5VH/YA6Ds
W84An3rU6hz0RAP6+hF6x+tVrgZZVStS
=t6/M
-----END PGP SIGNATURE-----

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.