Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
THISFORM can only be used within a method
Message
From
12/01/2007 12:35:37
 
 
To
12/01/2007 12:29:56
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01185055
Message ID:
01185137
Views:
12
BTW guys. Sorry, but the code is not in the form's .Init(), but in a method that fires when the Operator is changed (i.e. getting all the bus routes that apply to a part. bus operator).

I must be going snow-blind


>>>
>>>With Thisform
>>>  .nOperator	= NOTETM.OPERATOR
>>>  .cRoute		= NOTETM.ROUTE
>>>  .dStartDate	= NOTETM.START_DATE
>>>  .dEndDate       = NOTETM.END_DATE
>>>  .pgfMainPageFrame.Page2.Refresh()
>>>  .lContracts	= .F.	&& Posit
>>>* For Now>	  lcFilter = "OPERATOR = " + ALLTRIM( STR( .nOperator)) + " and " + ;
>>>* For Now>	  	    "END_DATE >= CTOD('" + DTOC( .dStartDate) + "')" + ;
>>>* For Now>	  	    " or EMPTY( END_DATE)"
>>>  lnOperator	= .nOperator
>>>  ldDate		= .dStartDate
>>>  lcFilter	= "OPERATOR = " + ALLTRIM( STR( lnOperator)) + " and " + ;
>>>  	           "END_DATE >= ('" + DTOC( ldDate) + "') or EMPTY( END_DATE)"
>>>  Select RTEFAM
>>>  Set Filter To &lcFilter
>>>  ...
>>>
>>
>>It should be:
>>"END_DATE >={" + DTOC( ldDate) + "} or ...
>
>
[EndDate>= {^]+Transform(Dtos(ldDate), "@R 9999-99-99" )+ [}]
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform