Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
THISFORM can only be used within a method
Message
De
12/01/2007 12:35:37
 
 
À
12/01/2007 12:29:56
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01185055
Message ID:
01185137
Vues:
13
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform