NetTalk Central

Author Topic: Pass date variable to progress make  (Read 3001 times)

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Pass date variable to progress make
« on: January 30, 2013, 11:02:31 PM »
Using Web72 Progress example (7.04)
I'm trying to pass a date value from The StartProcess Form to the ProcessMakePage Source
Steps
Add a local variable Long FromDate to the StartProcessForm
Add a local variable Long FromDate to the ProcessMakePage Source
Add Fromdate as a date entry field to StartProcess File tab (see image 1.jpg)
In ProcessmakeFile
Add a line   FromDate = p_web.GetValue('FromDate') after end of progressbar initialisation in ProcessCode Embed
and   p_web._trace('FromDate ' & FromDate) just below
compile
run
Then select the date as (say) 1 January 2013
The result in the trace is 1  (see image 2.jpg)

Is there a method to receive the Clarion date rather that the day of the month, or should I be receiving the Clarion date and this is a bug?

[attachment deleted by admin]
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Pass date variable to progress make
« Reply #1 on: February 01, 2013, 12:57:30 AM »
perhaps you can post your modified example so I can duplicate it here?

cheers
Bruce

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Pass date variable to progress make
« Reply #2 on: February 01, 2013, 01:58:52 AM »
A pleasure. File attached

[attachment deleted by admin]
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Pass date variable to progress make
« Reply #3 on: February 01, 2013, 02:24:56 AM »
perhaps more of a hint than an answer.

In ProcessMakeFile change your Trace statement to read;

  p_web._trace('FromDate ' & FromDate & ' GSV=' &p_web.GSV('FromDate') & ' V=' & p_web.GetValue('FromDate') )

I think that will be enough for you to progress.

cheers
Bruce