New topic: 

Window.Close

<http://forums.realsoftware.com/viewtopic.php?t=46098>

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        jetpr          Post subject: Window.ClosePosted: Fri Nov 30, 
2012 7:43 pm                                 
Joined: Wed Sep 20, 2006 5:12 pm
Posts: 528
Location: Puerto Rico                Hello

the window.close is like no working correct.

if any one have the same problem.

this is on windows 7 32bits
     
_________________
Thanks for any contribution  and  God blesses all (I start Using RS in 
10/12/2010)
 Mac Mini with Snow Leopard v10.6.8 and Real Studio 2012r1 Pro And Windows 7 
RS2012r1 Personal  and  Linux RS2012r1 Personal Register user 
   my Hobbies R/C Turbines Jets Models  
                             Top                jetpr          Post subject: 
Re: Window.Close RS 2012r1.2Posted: Fri Nov 30, 2012 8:02 pm                    
             
Joined: Wed Sep 20, 2006 5:12 pm
Posts: 528
Location: Puerto Rico                this is my code 

 Sub Open 
  Dim Rs As RecordSet
  Dim fDate As New Date
  
  SqlStr="Select Balance From CajaReg Where DateOpen='" + fDate.SQLDate + "' 
and Status='OpenCaja'"
  
  Rs=DbPos.SQLSelect(SqlStr)
  If DbPos.Error then
  MsgBox " Error  CloseStore "
  Return
  End If
  
  if Rs.RecordCount > 0  Then
  TxtReceips.Text=format(val(Rs.Field("Balance").StringValue),"###,##0.00")
  else
  Rs.Close
  MsgBox "No Record Found (Caja Bacía)"
  CloseStore.Close  <<<<<<<<<<<< this is no working 
  MainFrm.SetFocus
  MainFrm.TxtScanItems.SetFocus
  Return
  end if

end Sub      
_________________
Thanks for any contribution  and  God blesses all (I start Using RS in 
10/12/2010)
 Mac Mini with Snow Leopard v10.6.8 and Real Studio 2012r1 Pro And Windows 7 
RS2012r1 Personal  and  Linux RS2012r1 Personal Register user 
   my Hobbies R/C Turbines Jets Models  
                             Top                timhare          Post subject: 
Re: Window.ClosePosted: Fri Nov 30, 2012 10:05 pm                         
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 11856
Location: Portland, OR  USA                If this is in the Open event of 
CloseStore, then it will not work.  You cannot close a window from its own open 
event.   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to