Normal Topic Pop Up Calendar- Programing Question (Read 1288 times)
dcostanzo
Junior Member
Members
**
Offline


No personal text

Posts: 58
Joined: Mar 13th, 2003
Pop Up Calendar- Programing Question
Jan 29th, 2004 at 8:28pm
Print Post Print Post  
Just purchased new pop-utility Lantica Calendar.

I copied zip file to C:\sesame\Lanutils

In Program Editor
>If SelectedField="SCHEDULE DATE" and SelectField<>"SCHEDULE DATE" Then {
SelectField=@shell("C:\sesame\lanutils\calendar.bat");
SelectedField = @insert("c:\sesame\lanutils\mydate.txt");
SelectField="SCHEDULE DATE"}

Could any one offer any assistance.

Regards,

Dave Costanzo

I have one date element called "SCHEDULE DATE"

I can not get the program to test with out errors. Following errors:

Error String
Error while parasing module "SCHEDULE DATE (0)":
Statement or End-of-File expected.
Line 1, position 1: <
>If SelectedField=SCHEDULE DATE" and SelectField<>"SCHEDULE DATE" Then {
^


  
Back to top
 
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: Pop Up Calendar- Programing Question
Reply #1 - Jan 29th, 2004 at 8:38pm
Print Post Print Post  
// calls calandar program and tells were to return value

// I use this with a command button element
// substitute your element name to return value to for Dateentered

@MSG (@SHELL ("C:\Sesame\utils\lancal.exe c:\sesame\utils\mydate.txt"))
Dateentered = @insert("c:\sesame\utils\mydate.txt")
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Pop Up Calendar- Programing Question
Reply #2 - Jan 29th, 2004 at 8:41pm
Print Post Print Post  
The ">" symbol found at the beginning of your program is causing the syntax error.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
dcostanzo
Junior Member
Members
**
Offline


No personal text

Posts: 58
Joined: Mar 13th, 2003
Re: Pop Up Calendar- Programing Question
Reply #3 - Jan 29th, 2004 at 9:06pm
Print Post Print Post  
I tried to remove the > and now getting th ^ at

  Now getting the following error
Error String
Error while parasing module "SCHEDULE DATE (0)":
Statement or End-of-File expected.
Line 1, position 1: <
If SelectedField=SCHEDULE DATE" and SelectField<>"SCHEDULE DATE" Then {
^

I copied this program from the Allutils-readme Q&A programing statment example, but changed the location.

Bob,
// substitute your element name to return value to for Dateentered 

@MSG (@SHELL ("C:\Sesame\utils\lancal.exe c:\sesame\utils\mydate.txt"))
Dateentered = @insert("c:\sesame\utils\mydate.txt")

Does this look right

If SelectedField="SCHEDULE DATE" and SelectField<>"SCHEDULE DATE" Then {
SelectField= @MSG (@SHELL ("C:\Sesame\utils\lancal.exe c:\sesame\utils\mydate.txt"));
SelectedField = @insert("c:\sesame\utils\mydate.txt");
SelectField="SCHEDULE DATE"}

or could you give me an example. 

Still getting errors???

Thanks for your assitance.

Dave C.

  
Back to top
 
IP Logged
 
dcostanzo
Junior Member
Members
**
Offline


No personal text

Posts: 58
Joined: Mar 13th, 2003
Re: Pop Up Calendar- Programing Question
Reply #4 - Jan 29th, 2004 at 9:25pm
Print Post Print Post  
Hi Bob, the Cow

I tried this and got no errors.

@MSG (@SHELL ("C:\Sesame\lanutils\lancal.exe c:\sesame\lanutils\mydate.txt"))
SCHEDULE DATE = @insert("c:\sesame\Lanutils\mydate.txt")

testing in preview application. will report back

Thanks
  
Back to top
 
IP Logged
 
dcostanzo
Junior Member
Members
**
Offline


No personal text

Posts: 58
Joined: Mar 13th, 2003
Re: Pop Up Calendar- Programing Question
Reply #5 - Jan 29th, 2004 at 9:54pm
Print Post Print Post  
Everything is testing ok in preview

So far,

I am not sure I like it.

You can not toggle F9/ F10 between records on the date field with out it popping up every time.

Any way to get it to program to only pop up when you want to change a date?

I like to scroll through my records by date using F9/F10 and you keep having to confirm the dates.

It also seems to obstruct the form view your working in. I find the calender to be too large. 

I guess I will test it a few more days before making any commitments to using it.

Thanks for your assistance in helping me get this up and running.

Is anyone else using this utility?

Regards,

Dave Costanzo

  
Back to top
 
IP Logged
 
dcostanzo
Junior Member
Members
**
Offline


No personal text

Posts: 58
Joined: Mar 13th, 2003
Re: Pop Up Calendar- Programing Question
Reply #6 - Jan 29th, 2004 at 10:08pm
Print Post Print Post  
When I changed event: On Element Immediate Change.

This utility seems to run better when element programing is set under On Element Immediate Change. I was able to toggle between dates F9/F10 with out it changing dates.
then just hit the space bar while in element and wala!
Calender appears. - It works much nicer on this setting.

@MSG (@SHELL ("C:\Sesame\lanutils\lancal.exe c:\sesame\lanutils\mydate.txt"))
SCHEDULE DATE = @insert("c:\sesame\Lanutils\mydate.txt")

Regards,

Dave Costanzo
  
Back to top
 
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: Pop Up Calendar- Programing Question
Reply #7 - Jan 29th, 2004 at 10:19pm
Print Post Print Post  
Dave,

Another nice way to utilize the calendar is to just make a tiny little command button and put your logic on it and place it next to your date field, so when you want the calendar you just press the button. You will have no problems of it activating as you move from record to record.  Smiley
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
dcostanzo
Junior Member
Members
**
Offline


No personal text

Posts: 58
Joined: Mar 13th, 2003
Re: Pop Up Calendar- Programing Question
Reply #8 - Jan 29th, 2004 at 10:34pm
Print Post Print Post  
Thanks Bob for your responses.  I consider that.

I was wondering. It seems to work well in Update mode,

but when you F7 Search (blue) It does not pop up the calendar.

Is there any programing that would allow the calender to pop-up in search mode?

Dave C.

  
Back to top
 
IP Logged