Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Clarion > Re: Save pointe...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 9063 of 9121
Post > Topic >>

Re: Save pointer class

by "Earl R Coker" <ksasales AT machlink DOT com> Mar 26, 2008 at 07:25 AM

Hi jantje69,

I am not sure what the answer to your question is.  It sounds to me like
you 
are hand coding this program.  Is that true???  I use 3rd party templates 
for all of my added functionality and don't hand code anything except
embed 
code in templates.  Being able to do that is why I use Clarion.  <g>  I'm 
sure you will get better and faster answers to your questions on the  --- 

news.softvelocity.com  ---  newsgroup.
---
Best Regards,
Earl R Coker
ksasales AT machlink DOT com
www.kwiksystems.net
www.kwiksystems.com
www.kwiksystems.net/appshell/index.htm
www.kwiksystems.com/clarion.htm (BigTamer(tm) Templates)


<jantje69@[EMAIL PROTECTED]
> wrote in message 
news:5dbeda8f-8456-4446-9a6c-101f812e3228@[EMAIL PROTECTED]
> Hello,
> before you read my problem I must admid that a. this is my first post
> on the forum, b. I've only been working with Clarion for about 3
> months now and c. the company I'm working in (using Clarion), doesn't
> do any Object Orientated Programming at all...
> I thought it was time to change that, so I went over to create a
> little class in Clarion 6.1ee.
> At first it seem to work fine, helas, taking it to more tests makes it
> fail...  And I'm looking for some help on why it fails.
>
> About the class: the class is called the savePointerClass.  It has no
> explicit constructor and no explicit destructor. It has no public
> fields either.  Only two methods: savePointerClass.SetPtr and
> savePointerClass.GetPtr.  Both as their only argument take a file.  In
> the set method, the savepointerclass gets the name of the file, saves
> the current pointer on the file and saves what's in the current record
> buffer at the time.  The get method, checks to see if the same file
> was given as an argument, and if so, restores the pointer and what was
> in the records buffer.
>
> Where it fails... For example: I got one tps file called buildings.
> In an (imaginary) application, I got a table listing all the
> buildings.  Some off these buildings are let's say appartments.
> Appartments belong to a building.  So each building line in my table
> is clickable, when you click it, an objBuilding (savePointerClass)
> saves the info, and displays a the same form with the request to pick
> a building from.  However, clicking a line in the new table will again
> have an objBuilding save the info and showing a third form.  Closing
> this form, back onto the second form.  Closing second form, back onto
> the first form.  But now, the info that was in my original objBuilding
> is lost, it was overwritten when I openened the form a third time!
>
> Basically, opening the form in a new threat is not causing this
> problem.  Does that mean to say that forms opened in a same threat
> with fields (data) with the same name automatically share memory
> adresses?  I don't understand why, the class isn't declared static at
> all.
>
> Any help, or hints and tips would be really appreciated!
 




 4 Posts in Topic:
Save pointer class
jantje69@[EMAIL PROTECTED  2008-03-26 01:30:16 
Re: Save pointer class
"Earl R Coker"   2008-03-26 07:25:31 
Re: Save pointer class
jantje69@[EMAIL PROTECTED  2008-03-26 05:38:09 
Re: Save pointer class
jantje69@[EMAIL PROTECTED  2008-03-26 05:42:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 16:26:52 CDT 2008.