Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Swapping Desc and Part No txtboxes on the form at run-ti
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6 SP5
Database:
Firebird
Miscellaneous
Thread ID:
01104636
Message ID:
01104639
Views:
11
This message has been marked as the solution to the initial question of the thread.
>Hi all
>
>I have a working Items Master form. The first field on the form, as designed, is the Description textbox and below it is the Part No. textbox. Between users there is a requirement that the Part No. txt has to be the one on top and for others it is the Desc. txt.
>
>How can I do the swapping of the textboxes and their corresponding labels at run-time based on a users setting, say in the ini file or the registry. In short I know from the ini or registry that this particular user want Part No. then Desc. then how can I do the same at run-time?
>
>Please advise.

In init of the form:
IF user_want_part_top
   LOCAL lnPartTop, lnPartLeft
   m.lnPartTop               = thisform.PartNo.Top
   m.lnPartLeft              = thisform.PartNo.Left
   thisform.PartNo.Top       = thisform.Description.Top
   thisform.PartNo.Left      = thisform.Description.Left
   thisform.Description.Top  = m.lnPartTop
   thisform.Description.Left = m.lnPartLeft
ELSE
** That way the form is designed :-)
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform