| View previous topic :: View next topic |
| Author |
Message |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu Nov 06, 2003 6:20 am Post subject: Calendar Bug ?? |
|
|
Calendar Bug ??
| Visual DialogScript 5 Help wrote: | DIALOG ADD, CALENDAR,<name>,<top>,<left>,<width>,<height>,<value>,<hint>,<styles>
This dialog element creates a calendar at the position and size specified, setted to the date <value>. |
But this one below seems to ignore the date which is set and instead selects the current date
Is it just me OR ...
| Code: | | DIALOG ADD,CALENDAR,CALENDAR1,240,346,185,108,25/11/2003 |
_________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Thu Nov 06, 2003 10:21 am Post subject: |
|
|
I have to say that I wasn't particularly conscious that VDS had a calendar element. I'd never looked at the code for it until now. This is what I discovered:
The only value you can supply when the element is created is a number 1 - 12, which sets the month. It's probably best not to set it here at all.
You can set the date using DIALOG SET. However, the format is fixed and must be mm/dd/yyyy where '/' must be either the system date separator or '|'.
I think I'd have preferred it to be set using the result of a @datetime() function... _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu Nov 06, 2003 1:20 pm Post subject: |
|
|
| Code: | | DIALOG ADD,CALENDAR,CALENDAR1,240,346,185,108,25/11/2003 |
The above date was entered by Dialog designer itself
(25/11/2003 was the current date )
So I think the error in Dialog Designer and the documentaion
needs to be fixed.
Anyway I really doubt if I need this element anymore  _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|