Search found 12 matches: ouser

Return to advanced search

Re: Conversion from ca-clipper ( not found a variable)

... since they are visible everywhere, you always run the risk of conflicts with locals and fieldnames. Note that here we are using a static variable oUser (an object). A static variable retains its value as long as the program is running. #include "fivewin.ch"// Class for userClass TUser  ...
by James Bott
Thu Mar 10, 2022 7:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Conversion from ca-clipper ( not found a variable)
Replies: 30
Views: 4336

Get with on Change

... a save-button, if all are valid. the curiosity is now, that only two fields seem to follow the roules of the ON CHANGE clause. REDEFINE GET oUser VAR cUser ID 104 OF oDlg VALID !Empty (cUser) ;         ON CHANGE IIF ( (oUser:lValid() .and. oCity:lValid().and. ...
by StefanHaupt
Fri Jan 06, 2012 4:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Get with on Change
Replies: 4
Views: 782

Re: Xbrowse errors using ADO and column READ

... ?? Rick Lipkin http://img69.imageshack.us/img69/4374/reads.jpg [code] DEFINE ICON oICO RESOURCE "SCANNER" DEFINE WINDOW oUser ; FROM 2,2 to 25,65 ; of oWndMDI ; TITLE "USERINFO Administrative Browse" ; MENU BuildMenu(oRsUser) ; ICON oICO ; NOMINIMIZE ; NOZOOM ...
by Rick Lipkin
Sun Jul 17, 2011 4:23 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse errors using ADO and column READ
Replies: 8
Views: 2380

Re: question about Menu and permisions

... the user object. Then you can retrieve the user object anywhere in the program without using a public. Note that user():level is the same as doing oUser:= user(); oUser:level Menu oMenuif user():level > 3   menuitem...endifif user():level > 2   menuitem...endif Regards, James
by James Bott
Thu Feb 18, 2010 2:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: question about Menu and permisions
Replies: 6
Views: 1163

Check Boxes

... can do something like this: menuItem prompt "Edit" action ::edit() when user():lEdit This syntax may not be clear. The function user() returns an oUser object and one of the variables of that object is lEdit. Thus user():lEdit is the same as oUser:lEdit. The reason for storing the oUser object ...
by Antonio Linares
Wed Aug 27, 2008 7:43 am
 
Forum: Utilities / Utilidades
Topic: Boris Pekic - NG's archive
Replies: 27
Views: 65111

... Function Countrycode() not included. Hope you'll enjoy it. :lol: Antonio FUNCTION PhoneTO(cPhone,cNome,cComment,CodeCountry) Local oSkype,oCall,oUser DEFAULT CodeCountry := CountryCode() if empty(cPhone) return 0 endif //if its a user do nothing if val(cPhone) <>0 //phone number build ...
by AHF
Sat Nov 17, 2007 1:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Making Skype phone calls and sms
Replies: 10
Views: 5691

... way it was before (no permisson necessary) because of the claims. By the way, the code has the following diference to the one post previously : oUser:= oSkype:user(cPhone) oCall := oSkype:PlaceCall(oUser:Handle) It works perfectly. And it can process a call to a number or if you have the skype ...
by AHF
Sat Nov 17, 2007 9:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Making Skype phone calls and sms
Replies: 10
Views: 5691

Making Skype phone calls and sms

I've been trying with the code below but it doesn't work. FUNCTION PhoneTO(cPhone,cNome,cComment) Local oSkype,oCall,oUser cPhone := alltrim(cPhone) Try oSkype := CreateObject("Skype4COM.Skype") Catch alert("Skype4Com não está instalado!") return End If .not. oSkype:Client:IsRunning() ...
by AHF
Wed Nov 14, 2007 10:38 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Making Skype phone calls and sms
Replies: 10
Views: 5691

... nNewOption endif return nReply You could just change the fucntion name to user(). Better yet is to create a user class and then store the oUser object in the user function. You can create a user class with DATA such as user name, password, rights, etc. Also, you could add methods for load(), ...
by James Bott
Fri Aug 24, 2007 4:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Errsysw
Replies: 8
Views: 1664

... MsgInfo( "Error in Opening USERINFO table" ) RETURN(.F.) END TRY oRs:Find("USERID = '"+xLOGIN+"'" ) IF oRs:eof oRs:MoveFirst() ENDIF DEFINE WINDOW oUser ; FROM 2,2 to 25,65 ; of oWndMDI ; TITLE "USERINFO Records Browse" ; MENU BuildMenu(oRs) ; NOMINIMIZE ; NOZOOM ; MDICHILD @ 0, 0 LISTBOX oBrow ...
by Rick Lipkin
Thu Jun 21, 2007 1:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO update visability between workstations
Replies: 18
Views: 4944

Como hago para que se actualice la foto

... del usuario, me la muestra bien puesto que coge eluser que tiene definido windows como usuario pero si cambio de usuario (en el objeto GET oUser VAR x_user) no me actualiza la imagen. Alguana idea? function lGetPassword() local oDlg, oUser, oPass local nTries := 0 //Nº de intentos ...
by Andrés González
Tue Feb 27, 2007 12:57 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como hago para que se actualice la foto
Replies: 3
Views: 1192

... 5, oSelf:oWnd:oMsgBar,0,,,.t.,.f.,180,14.7) Return Self METHOD MyClick(nRow, nCol, oTree) CLASS tNewrol local oItem Local nAt Local oUser local n, lWhen local oItem1 oItem := oTree:HitTest( nRow, nCol ) if oItem != NIL nAt := Ascan( ::aEmpresas, oItem:cPrompt ) aFill( ::aPerms, .T. ...
by wilsongamboa
Mon Jan 23, 2006 1:09 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problemas con Menu en tiempo de ejecucion
Replies: 8
Views: 2275

Return to advanced search