Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Editbox - scroll to bottom on refresh
Message
De
10/05/2006 06:09:44
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01120636
Message ID:
01120639
Vues:
11
It is now...

Thank's Borislav.

>>
>>* Form refresh, triggered by a timer
>>
>>Local cLogDir As String, cPrefix As String, cFile As String, cSource As String
>>
>>cLogDir = [Logs\]
>>
>>If Thisform.Optiongroup1.Option1.Value = 1
>>	cPrefix = cLogDir + [RMT54]
>>Else
>>	cPrefix = cLogDir + [RMT54RunErrors]
>>Endif
>>
>>cFile = cPrefix + Dtos(Date()) + [.Log]
>>
>>If Not File(cFile)
>>	cFile = cPrefix + Dtos(Date()-1) + [.Log]
>>Endif
>>
>>If File(cFile)
>>	cSource = Filetostr(cFile)
>>Else
>>	cSource = [There has been no activity for, at the very least, 24 hours...]
>>Endif
>>
>>Thisform.AddProperty('cSource',cSource)
>>
>>With Thisform.Pages1._Page1.Tekst       && the Edixbox
>>	.ControlSource = Thisform.cSource
>>	.Value = Thisform.cSource
>>EndWith
>>
>>* Now it would be nice if there was a way to display
>>* the last "page" of Thisform.cSource (I hope this is understandable)
>>
>>
>>
>>TIA
>
>
>With Thisform.Pages1._Page1.Tekst       && the Editbox
>	.ControlSource = Thisform.cSource
>	.Value         = Thisform.cSource
>        .SelStart      = LEN(Thisform.cSource)
>EndWith
>
>(not tested)
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform