` Reference variable to get a value from an address (Brent Stock) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Clarion in general: Reference variable to get a value from an address
2004-03-12 -- Brent Stock
 
Newsgroups: softvelocity.clarion.language > Thanks for the link. I figured out what I was doing wrong. I ended up > using memcpy(). It all works like a charm now. I had a similar problem and used memcpy as well but found a better solution is to declare a refernce variable that points to a group/variable defined the same as the memory area pointer at by the returned value and then... LocalPTR &= (ReturnedPTR) !Note the brackets The you can use it as you would normally LocalPTR.myfield = xyz etc Brent Stock


Today is April 23, 2024, 6:38 pm
This article has been viewed 35109 times.
Google search has resulted in 26 hits on this article since January 25, 2004.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: