*------------------------------------------- * Function...: Xmenu * Author.....: MARTIN * Date.......: 04/06/1997 * Notes......: Based on an idea from Steve Zimmelman for FoxPro 2.x * Parameters.: tcItems = Semicolon-separated String with the various options * ...........: tnBar = Initially selected item (default=1) * Returns....: Selected item number * See Also...: PROMPT() [FoxPro Native] * lnOption = xmenu('\ 0 lcXMLDirectory = lcXMLDirectory + Alltrim(tcCustomer_name) + '\' Endif Return lcXMLDirectory Endfunc Enddefine && Config ********************** inceput versiune ************************* Procedure versiune Lparameters lcvers External Array laVers Local lcVersiune, lnNr lcVersiune = [] lnNr = Alines(laVers,Nvl(lcvers,[]),.T.,".") If lnNr > 1 For i =1 To lnNr laVers(i) = Replicate("0",3 - Len(Alltrim(Nvl(laVers(i),[])))) + laVers(i) lcVersiune = lcVersiune + laVers(i) + "." Endfor lcVersiune = Left(lcVersiune,Len(lcVersiune)-1) Else lcVersiune = lcvers Endif Return lcVersiune Endproc ********************* versiune ^ ******************************** **************************** inceput cmdPagToate ************************** Define Class cmdPagToate As CommandButton && Create Command button Left = 50 && Command button column Top = 100 && Command button row Height = 25 && Command button height Visible = .T. ToolTipText = "Toate inregistrarile" Caption = "\ ] + lcp1 This.Parent.save_grid(This.Parent.grid1) executasql(lcSql,This.Parent.cCursor,.T.) Select (This.Parent.cCursor) If Reccount() = 0 executasql(lcSqlBackup,This.Parent.cCursor,.T.) This.Parent.npag1 = 0 This.Parent.npag2 = 25 Endif This.Parent.restore_grid(This.Parent.grid1) Endproc Enddefine ************************ sfarsit cmdPagUrmatoare ^ ********************************