![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi all,
I'm working on a pool program for the euro 2008. Competitors must fill in a form, and the data will be stored in a .csv file (with encryption). Now i want to avoid that this form is opened after 7th of June 2008 18:00. I'm trying it with timeparse and timeadd, but i can't find the solution. thx Arrie |
|
||||
|
You will have to chech if the current date and time is off your allowed time span..
To do so you will need to first set the ticks to the date you want: enddateticks=dateParse("07/06/2008") ´Must be formated the same as Date Format Then You Must get the hours tick value: endhourTick=DateParse(Date(Now))-Timearse("18:00") ´Again it must be formatted as Time Format Then the Total Ticks At 7th of June 2008 18:00 will be EndDateTicks+EndHourticks. All you need now to do is to check if the time when a form is validadted, or shown, is larger thatn that of the closing date... if Now=>TotalTicks Then MSGBOX("Entrys Not Allowed after 7th of June 2008 18:00."
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| avoid using goto | paul j | Code Samples & Tips | 0 | 11-11-2007 12:56 PM |
| I'm starting to distill myself... | Cableguy | Questions & Help Needed | 4 | 09-14-2007 06:11 PM |
| Error when loading table how to avoid | tvrman | Questions & Help Needed | 2 | 08-04-2007 09:32 PM |
| Starting question | Gale Johnson | Bug Reports | 2 | 07-30-2007 10:32 PM |
| Quick question to avoid going down a long dead end route | LineCutter | Questions & Help Needed | 2 | 05-22-2007 08:29 AM |