Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Label doesn't refresh
Message
From
13/01/2003 18:34:13
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00741071
Message ID:
00741233
Views:
27
ya - i remembered that now that the brick was smashed upside my skull again.

in the meantime -
i tried out something that worked..
in the init of the label -
lparameters lccaption
this.caption = lccaption
---
then in your codeblock
lcCaptionVal = m.lcOriginalCaption  + ;
  iif(thisform.cAction = "Archive"," Archiving "," UnArchiving ") + ;
	              alltrim(JobsFrom.JobDescrip)

thisform.label.init(lcCaptionVal)
seemed to work very well for me - try it again?
mondo regards [Bill]

>Label doesn't have refresh method (unless it's a special class labels). I made it work by using unbind textbox. Don't want to spend any more time on this damn thing...
>
>>Heya - just a SWAG - but did u try a .refresh before the endwith?
>>lemme know how that works out...
>>mondo regards [Bill]
>>>Well, after about 1h struggling I made it to work removing thisform.lockscreen = .t., making it textbox, updating value in a loop (bound textbox didn't work).
>>>
>>>
>>>>Is your AutoYield setting False? If so, try setting it to True so that VFP can read windows events during the loop, including the attempt to refresh the label.
>>>>
>>>>(Strange, I was sure DoEvents would do it as well, but I can't get it to work... I was so sure it worked that I am wondering if the functionality changed between VFP6 and VFP7.... but try AutoYield, which worked for me with VFP7)
>>>>
>>>>>Hi everybody,
>>>>>
>>>>>I'm running a scan loop and want to show the name of the job running. Here is my code inside scan:
>>>>>
>>>>>with thisform.lblJobType
>>>>>		.caption = m.lcOriginalCaption  + ;
>>>>>				  iif(thisform.cAction = "Archive"," Archiving "," UnArchiving ") + ;
>>>>>	              alltrim(JobsFrom.JobDescrip)
>>>>>		.visible = .f.
>>>>>		.visible = .t.
>>>>>	endwith
>>>>>
>>>>>However, it doesn't work.
>>>>>
>>>>>Do you know, why?
>>>>>
>>>>>Thanks in advance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform