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


Data Bases > Paradox > Re: Same form, ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 83 of 85 Topic 1325 of 1428
Post > Topic >>

Re: Same form, but one system GPFs...?

by Dennis Santoro <RDAPres@[EMAIL PROTECTED] > Feb 18, 2008 at 01:02 PM

I haven't finished the whole thread but it seems you are violating all 
sorts of best practices. Ones I've noticed so far:

Seems you have no record object containing your fields (MRO or TF) but a 
box instead. BAD IDEA.

You are using long names

You are using characters that should not be used in names (only use a to 
z, A to Z and 0-9, no spaces, dashes, underlines or odd characters)

You are using cFunctions on a network.

I strongly suggest you check out my Database Basics paper (link in my 
signature) for common pitfalls and best practices. It can save you a lot 
of grief.

Kenneth wrote:
> On Fri, 15 Feb 2008 10:46:42 -0700, "Tony McGuire"
> <png.paradoxcommunity@[EMAIL PROTECTED]
> wrote:
> 
>>> For the first five entries, all was well, but then, she got
>>> the GPF as before.
>> At this point, you need to show the code used on the form. 
>> (action/arrive/depart/open/etc)
>>
>> Is the form opened/closed for each 'entry'?
> 
> Hi Tony (and all),
> 
> I rebuilt the form from scratch (new form, re-drew all
> objects, cut & pasted code from old form to new) and put the
> new form on our server.
> 
> Just as before, when opened from all but one machine, it
> works fine, but when the brand new form is opened on one
> machine, it causes GPFs as did the old form.
> 
> The new form has one page. On that page is a box that
> contains all the form's fields (about a dozen of 'em).
> 
> Here is all the code:
> 
> On the form:
> 
> method close(var eventInfo Event)
> if eventInfo.isPreFilter() then
>       ;// This code executes for each object on the form
>    else
>       ;// This code executes only for the form
> endEdit()      
>    endIf
> endMethod
> 
> 
> 
> On the Page:
> 
> method action(var eventInfo ActionEvent)
> var
>    TC TCursor
> endVar
> if eventInfo.id()=dataInsertRecord then
>    edit()
>    doDefault
>    tc.open(":DATA:$KSA08.DB")
>    Entry=tc.cmax("Entry")+1
> endif
> if eventInfo.id()=dataEndEdit then
> self.end()
> endIf
> endMethod
> 
> 
> 
> On the box:
> 
> method open(var eventInfo Event)
> self.end()
> endMethod
> 
> 
> 
> On a field called Balance:
> 
> sum([:MONEY:INVOICES.DUE])  + Sum([:WORK:$KSA08.Amount])
> 
> 
> 
> On a field called Category:
> 
> method newValue(var eventInfo Event)
> if self.value=33 then
>       Dep_On.moveTo()
> endIf
> EndMethod
> 
> 
> 
> On a field called Check:
> 
> method keyPhysical(var eventInfo KeyEvent)
>    var tc tcursor endvar
>    if EventInfo.isControlKeyDown() and eventInfo.vChar()="N"
> then
>    edit()
>    delayScreenUpdates(yes)
>    active.action(EditEnterFieldView)
>    if(self.isblank()) then
>    edit()
>    doDefault
>    tc.open(":DATA:$KSA08.DB")
>    check=tc.cmax("check")+1
>    else
>    Amount.moveto()
>    endif
>    endIf
> endMethod
> 
> 
> 
> On a field called Amount:
> 
> method changeValue(var eventInfo ValueEvent)
> var 
>   userChoice String 
> endVar
> doDefault
> if amount1.value < 7000 then
>    msgInfo("OOOOPS!","Balance Kinda Low...")
> endIf
> if self.value>0 then
>    userChoice = msgQuestion("Question...?", "Is this a
> CREDIT?")
> switch
>    case userChoice = "Yes" :
>      Category.moveTo()
>    case userChoice = "No"  :
>      msgInfo("OOOOPS!","Please add that MINUS SIGN!")
>      amount.moveTo()
> endSwitch
>    EndIf
> endMethod
> 
> 
> 
> On a field called Entry:
> 
> method open(var eventInfo Event)
> self.end()
> endMethod
> 
> method changeValue(var eventInfo ValueEvent)
> doDefault
> action(dataPostRecord)
> endMethod
> 
> method newValue(var eventInfo Event)
> amount.moveTo()
> endMethod
> 
> 
> 
> Of course, I would be most appreciative of any help you
> could provide.
> 
> All the best, and sincere thanks,
 




 85 Posts in Topic:
Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-12 10:47:20 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-12 12:40:44 
Re: Same form, but one system GPFs...?
"Rodney Wise" &  2008-02-12 14:09:34 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-12 14:54:53 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-12 15:00:16 
Re: Same form, but one system GPFs...?
"Rodney Wise" &  2008-02-12 17:29:44 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-12 19:55:16 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-12 20:30:43 
Re: Same form, but one system GPFs...?
"Rodney Wise" &  2008-02-12 23:16:22 
Re: Same form, but one system GPFs...?
Michael Kennedy <Info@  2008-02-13 12:15:35 
Re: Same form, but one system GPFs...?
"Tony McGuire"   2008-02-12 20:43:57 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-12 23:08:47 
Re: Same form, but one system GPFs...?
"Tony McGuire"   2008-02-12 21:34:56 
Re: Same form, but one system GPFs...?
Jan Stegehuis <alleyho  2008-02-13 14:59:14 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-13 10:32:19 
Re: Same form, but one system GPFs...?
"Tony McGuire"   2008-02-13 08:35:05 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-13 13:00:02 
Re: Same form, but one system GPFs...?
"Tony McGuire"   2008-02-13 11:04:15 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-13 14:47:21 
Re: Same form, but one system GPFs...?
"Tony McGuire"   2008-02-13 12:48:24 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-13 15:31:18 
Re: Same form, but one system GPFs...?
"Tony McGuire"   2008-02-13 13:35:15 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-14 10:04:03 
Re: Same form, but one system GPFs...?
"Tony McGuire"   2008-02-14 09:02:55 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-14 14:37:16 
Re: Same form, but one system GPFs...?
"Anders Jonsson"  2008-02-15 08:36:40 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-15 11:59:35 
Re: Same form, but one system GPFs...?
"Tony McGuire"   2008-02-15 10:46:42 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-15 14:06:42 
Re: Same form, but one system GPFs...?
"Rodney Wise" &  2008-02-16 05:29:34 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-18 09:05:31 
Re: Same form, but one system GPFs...?
"Tony McGuire"   2008-02-18 07:44:14 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-18 10:33:32 
Re: Same form, but one system GPFs...?
"Tony McGuire"   2008-02-18 08:54:15 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-18 11:12:30 
Re: Same form, but one system GPFs...?
"Tony McGuire"   2008-02-18 09:38:05 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-18 11:51:16 
Re: Same form, but one system GPFs...?
"Tony McGuire"   2008-02-18 10:02:31 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-18 12:37:08 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-17 13:11:44 
Re: Same form, but one system GPFs...?
"Jim Moseley" &  2008-02-17 13:55:28 
Re: Same form, but one system GPFs...?
"Jim Moseley" &  2008-02-17 13:58:39 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-18 09:55:17 
Re: Same form, but one system GPFs...?
"Jim Moseley" &  2008-02-18 10:11:22 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-18 10:32:26 
Re: Same form, but one system GPFs...?
"Rick Rans" <  2008-02-17 17:08:07 
Re: Same form, but one system GPFs...?
"Anders Jonsson"  2008-02-18 08:04:19 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-18 07:39:21 
Re: Same form, but one system GPFs...?
"Anders Jonsson"  2008-02-19 07:28:38 
Re: Same form, but one system GPFs...?
Tom Krieg <user@[EMAIL  2008-02-19 19:40:46 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-19 10:34:13 
Re: Same form, but one system GPFs...?
Dennis Santoro <RDAPre  2008-02-19 10:53:31 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-19 11:57:18 
Re: Same form, but one system GPFs...?
"Anders Jonsson"  2008-02-19 21:39:00 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-19 16:46:56 
Re: Same form, but one system GPFs...?
"Anders Jonsson"  2008-02-19 23:51:17 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-19 18:16:56 
Re: Same form, but one system GPFs...?
"Tony McGuire"   2008-02-19 16:41:06 
Re: Same form, but one system GPFs...?
Tom Krieg <user@[EMAIL  2008-02-20 10:58:59 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-19 20:00:50 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-19 19:51:49 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-19 20:52:16 
Re: Same form, but one system GPFs...?
"Tony McGuire"   2008-02-19 20:20:30 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-19 22:26:37 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-20 10:17:19 
Re: Same form, but one system GPFs...?
"Tony McGuire"   2008-02-20 08:26:03 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-20 10:39:09 
Re: Same form, but one system GPFs...?
"Rick Rans" <  2008-02-20 09:13:31 
Re: Same form, but one system GPFs...?
Dennis Santoro <RDAPre  2008-02-20 11:13:50 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-20 12:00:36 
Re: Same form, but one system GPFs...?
"Anders Jonsson"  2008-02-20 19:35:15 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-20 14:11:56 
Re: Same form, but one system GPFs...?
"Anders Jonsson"  2008-02-21 08:02:18 
Re: Same form, but one system GPFs...?
"Tony McGuire"   2008-02-20 12:21:09 
Re: Same form, but one system GPFs...?
"Anders Jonsson"  2008-02-21 08:09:21 
Re: Same form, but one system GPFs...?
Tom Krieg <user@[EMAIL  2008-02-21 19:42:32 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-21 06:55:12 
Re: Same form, but one system GPFs...?
"Tony McGuire"   2008-02-21 07:23:09 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-21 10:14:37 
Re: Same form, but one system GPFs...?
"Anders Jonsson"  2008-02-20 19:31:57 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-20 14:13:20 
Re: Same form, but one system GPFs...?
Dennis Santoro <RDAPre  2008-02-20 16:40:33 
Re: Same form, but one system GPFs...?
Dennis Santoro <RDAPre  2008-02-18 13:02:08 
Re: Same form, but one system GPFs...?
Kenneth <usenet@[EMAIL  2008-02-18 14:40:31 
Re: Same form, but one system GPFs...?
Kenneth Porter <shiva.  2008-02-15 18:39:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Tue Dec 2 21:57:32 CST 2008.