Home > Archive > Programming with dBASE > March 2006 > datalinks do not work VisualDB ver 5.7









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author datalinks do not work VisualDB ver 5.7
Peter L.

2006-03-17, 3:24 am

(This is a problem running dbase code in Ver. 5.7 and XP)
(This same code in our NT 4.0 and dbase 5.5 is flawless)
How is this possible? I'm in the debugger, at point a, (I'm showing
where point a is) the ccards.wfm has been executed and user input
has been entered. Before line -select cCards- all is perfect.
Debugger's Watch point alias(), tag(), content of changed dbf fields, ALL contain the perfect updated info. Then I step once in the debugger,
cCards.dbf is closed, I close pgm, debugger, get out, GO to the
DBF, NOTHING has been changed, old info, what I saw in the
debugger was an illusion &^%&^%$#. Some weird buffer shows
me the correct things in the debugger but that buffer is discarded.
Is this IDAPI? I am clueless! Thanks.


>
> Procedure CREDIT_CARD_PROCESSI
NG_OnClick
> ********************
********************
***
> nCode = CODE
> cLast = LAST
> cFirst = FIRST
> cOldAlias = alias()
> cOldTag = tag()
>
> select select()
> use \business\cCards.dbf alias cCards
> set order to code
> if .not. seek(nCode)
> append blank
> replace CODE with nCode, ;
> LAST with cLast, ;
> FIRST with cFirst
> endif
>
> form.z = new CcardsForm()
> form.z.mdi = .f.
> form.z.sysmenu = .t.
> form.z.TheCode = nCode
> form.z.Readmodal()
>

* point a
> select cCards
> use
>
> select (cOldAlias)
> set order to (cOldTag)
>
> form.z.Release()
>
> ====================
====================
========
> Ccards.wfm, a few lines. Before CLASS there’s the automatic ** END HEADER....
> *generated on .......
> ====================
====================
========
> CLASS CCARDSFORM OF FORM
> this.OnOpen = CLASS::FORM_ONOPEN
> this.Left = 20.5
> this.Top = 7.3525
> this.Text = "CREDIT CARD DATA"
> this.MenuFile = "\BUSINESS\CCARDS.MNU"
> this.Height = 9.0586
> this.Width = 70
>
> DEFINE ENTRYFIELD ENTRYFIELD1 OF THIS;
> PROPERTY;
> OnGotFocus {;Keyboard "{Home}"},;
> Left 33,;
> Top 3.7637,;
> DataLink "CCARDS->CARDNUMBER",;
> Height 1.001,;
> Width 34
>


*Lysander*

2006-03-17, 3:24 am

Peter L. schrieb:

> Debugger's Watch point alias(), tag(), content of changed dbf fields, ALL contain the perfect updated info. Then I step once in the debugger,
> cCards.dbf is closed, I close pgm, debugger, get out, GO to the
> DBF, NOTHING has been changed, old info, what I saw in the


so, at point a you have data in the corresponding fields of the table
and when you select another table they are gone?

1.)
try FLUSH before selecting the next table

2.)
get the tool "filemon.exe" by "www.sysinternals.de"
Freeware, and with it's help you can analyse what get's written where
and when at each step of one program.

ciao,
André
Peter L.

2006-03-18, 3:25 am

Thank you for the answer. I tried FLUSH, and filemon.exe.
FLUSH did not work. I checked the activity of the DBF's in
question running filemon.exe and the results look normal.
It reports something related to WRITE to the dbf, READ I
think I saw. But nothing gets written to the DBF. Any ideas
are welcome. Thanks.


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com