Search found 48 matches: trapping

Return to advanced search

Re: XBrowse: how to disable a line

Enrico Maria Giordano wrote:Sorry, I express myself bad: I would want to disable a line so it cannot be selected. But never mind, I solved with bChange and trapping VK_UP and VK_DOWN inside it.

EMG

Good!
by FranciscoA
Tue Oct 20, 2020 3:27 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBrowse: how to disable a line
Replies: 3
Views: 394

Re: XBrowse: how to disable a line

Sorry, I express myself bad: I would want to disable a line so it cannot be selected. But never mind, I solved with bChange and trapping VK_UP and VK_DOWN inside it.

EMG
by Enrico Maria Giordano
Tue Oct 20, 2020 3:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBrowse: how to disable a line
Replies: 3
Views: 394

Re: Plotting locations on Google Maps

... using FiveWin. Its my mistake that, I have not gone deep into catching the run time errors if there are no results from Google. Thoughts on trapping hjson values that do not have an array would be appreciated. You should add the lat long to the array only if hJson["status"] == ...
by anserkk
Fri Mar 10, 2017 4:22 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Plotting locations on Google Maps
Replies: 48
Views: 14244

Re: Plotting locations on Google Maps

... Since this client ( like most ) has over 30 years of address data, there will be mistakes and thousands of records to be corrected. Thoughts on trapping hjson values that do not have an array would be appreciated.
by TimStone
Thu Mar 09, 2017 11:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Plotting locations on Google Maps
Replies: 48
Views: 14244

Re: Trapping events on a ToleAuto object

Richard, Thank you very much. Problem solved. FWIW- I tried to simplify the code. Here it is: METHOD New() CLASS MpCal...   ::aSchedules := ::oSchdls:SaveToArray( { |o| o:id } )   aTmp := ExecuteSqlScript( "Select label, id from schdl_lbls", .f. )   aEval&...
by reinaldocrespo
Mon Feb 09, 2015 4:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Trapping events on a ToleAuto object
Replies: 6
Views: 2205

Re: Trapping events on a ToleAuto object

Reinaldo This is the code i use for showing multiple schedules , it is working OK I use Harbour and msvc 2013 Hth Richard METHOD buildMultiSchedule() CLASS TPLANCJlocal oSchedules , ;      oRes := {} , ;      n    := 0IF ! PLANPREF->MULTIP...
by Richard Chidiak
Mon Feb 09, 2015 6:55 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Trapping events on a ToleAuto object
Replies: 6
Views: 2205

Re: Trapping events on a ToleAuto object

I think it will be easier to try and find out why is TActiveX():New() causing a GFP. If you have a codeJock ocx available you could recreate the gpf with this line:       ::oCalexResources := tActiveX():New( ,"Codejock.CalendarResources.13.4.2" )   I think the gpf happens i...
by reinaldocrespo
Sun Feb 08, 2015 10:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Trapping events on a ToleAuto object
Replies: 6
Views: 2205

Re: Trapping events on a ToleAuto object

Thank you, Rick. My question is not how to trap and recover from an error. My question is how to trap the ocx's event. When the object is created using Tactivex():new() you can use bonEvent property to trap and act as you wish anytime an event is triggered by the component. I can't find how to do so...
by reinaldocrespo
Sat Feb 07, 2015 11:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Trapping events on a ToleAuto object
Replies: 6
Views: 2205

Re: Trapping events on a ToleAuto object

Reinaldo As they said in the movie Major League .. "Wonder how you feel about the 'Good Ole Number 1'" ( try\Catch ), Also .. you can evaluate oErr on error. :) Rick Lipkin  Try     oCn  := CREATEOBJECT( "ADODB.Connection" ) Catch oErr      MsgInfo( "Could not cr...
by Rick Lipkin
Sat Feb 07, 2015 10:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Trapping events on a ToleAuto object
Replies: 6
Views: 2205

Trapping events on a ToleAuto object

Hi.

I usually trap Ole events using :bOnEvent property of TActiveX() object. How can I trap events when the object is created using CreateObject()?

Thank you,


Reinaldo.
by reinaldocrespo
Sat Feb 07, 2015 7:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Trapping events on a ToleAuto object
Replies: 6
Views: 2205

Re: ADO record locking experiences

... should not be able to edit it. How are you managing this situation ? I appreciate your comments You have to use pessimistic locking and error trapping. This is the way ADO works. EMG
by Enrico Maria Giordano
Sat Aug 23, 2014 3:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO record locking experiences
Replies: 11
Views: 2292

Re: CDO Email strange behavoir

... interval (it is normally 30). :Item( "http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout"):Value := 30 Is your code trapping and displaying errors? If not add it. OK, that was three things. James
by James Bott
Mon Jul 22, 2013 7:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: CDO Email strange behavoir
Replies: 12
Views: 3992

Trap Ctrl-C in xBrowse

Hi,

trapping Ctrl-C inside xBrowse with :bKeyChar is not working, because it´s handled in the method :Keydown().
Is it possible to have it´s own action for this key ?

Why are there two keyhandlers in xBrowse, what is the difference between :Keydown() and :Keychar () ?
by StefanHaupt
Fri Dec 07, 2012 3:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Trap Ctrl-C in xBrowse
Replies: 2
Views: 554

Re: DIALOGS NOWAIT-CLAUSULA VALID

Francisco Consider this code .. notice the the variable lClosed is the key in trapping the valid close. Note that oWndChild:End() trips the valid close just like X on the window close. Rick Lipkin Local lCLosedLocal lOklCLosed := .f.lOk       := .f.cTITLE := "System ...
by Rick Lipkin
Thu Dec 06, 2012 2:48 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: DIALOGS NOWAIT-CLAUSULA VALID
Replies: 20
Views: 4298
Next

Return to advanced search