Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Browse window??
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00364748
Message ID:
00364786
Vues:
24
>Can i disable the max and min control button on the browse window/
>also can i make i field using expresion, say QTY * COST...?

You can create your own form/window that the browse is IN on the fly. I do this for report preview. Browse has a IN WINDOW option, look at the help system for details. Look at the code below and see how I do it for a report preview, you can easily change the code to show a browse window. As for the expression, if you create the file with SQL select, then there is an AS option that can be used. Look in the help system for using the AS clause.

* METHOD Code
LPARAMETERS tcReportName, tcReportTitle

LOCAL loForm
_SCREEN.CONTROLBOX = .F.
loForm = CREATEOBJECT("Form")
WITH loForm
  .WINDOWSTATE = 1
  .CAPTION = tcReportTitle
  .MINBUTTON = .F.
  .MAXBUTTON = .T.
  .CLOSABLE = .T.
  .MOVABLE = .T.
  .HALFHEIGHTCAPTION = .T.
  .BORDERSTYLE = 3
  .SCROLLBARS = 3
  .BACKCOLOR = RGB(255,255,255)
ENDWITH
lcFormName = loForm.Name
KEYBOARD '{CTRL+F10}'
REPORT FORM &tcReportName PREV WINDOW &lcFormName
_SCREEN.CONTROLBOX = .T.

RELEASE loForm
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform