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



By "it" I meant the data structure.

Remember you'll need to Dealloc(n) the pointer at some point as well. (In all my dealings with pointers, I've never actually used the Clear opcode on one.)

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Kurt Anderson
Sent: Friday, July 31, 2009 10:03 AM
To: 'RPG programming on the IBM i / System i'
Subject: RE: pointer problem

David,

I suggest seeing how this is used in other programs. It may be setting the pointer via %addr, %alloc, or a procedure call. Once the pointer has an address, you can then clear it.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Friday, July 31, 2009 9:32 AM
To: RPG programming on the IBM i / System i
Subject: Re: pointer problem

Did you assign a value to the pointer? For example, if you try to clear
the datastructure before setting the pointer this may happen.

You do NOT need to preclear the datastructure as in the following:
- Clear the data structure
- Assign the pointer to the right offset in your user space or whatever
you are using
Because the data structure will have all new values upon the assignment.

Rob Berendt

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.