Jump to content
Fivewin Brasil

Embaralhar o conteúdo da xBrowse()


kapiaba

Recommended Posts

Super interessante...

// C:\FWH..\SAMPLES\XBRSTRUC.PRG
// Embaralhar o conteudo da xBrowse() - By Mister Nages.
	#Include "FiveWin.ch"
	STATIC oWnd
	FUNCTION Main()
	   LOCAL aCols, oBrw
	   USE CUSTOMER
   GO TOP
	   aCols := ArrTranspose( DBSTRUCT() )[ 1 ]
   aCols := AShuffle( aCols, 2, 9 ) // Embaralhar o conteudo da xBrowse()
	   DEFINE WINDOW oWnd TITLE "CUSTOMER.dbf - Embaralhar o conteudo da xBrowse()"
	   @ 0,0 XBROWSE oBrw SIZE 0, 0 PIXEL OF oWnd ;
      DATASOURCE "CUSTOMER" COLUMNS aCols CELL LINES NOBORDER
	   oBrw:AutoFit()
   oBrw:CreateFromCode()
	   oWnd:nWidth    := 900
   oWnd:nHeight   := 300
	   ACTIVATE WINDOW oWnd CENTERED
	RETURN NIL
	// FIN / END - kapiabafwh@gmail.com

Regards, saludos.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...