Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Dec 12, 2018 3:22 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Window.Close
PostPosted: Fri Nov 30, 2012 7:43 pm 
Offline
User avatar

Joined: Wed Sep 20, 2006 5:12 pm
Posts: 680
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
:idea:

_________________
Thanks for any contribution and God blesses all (I start Using RS in 10/12/2010)
Mac Mini with Lion v10.7.5 and Real Studio 2012r1 Pro And Windows 7 RS2012r1 Personal and Linux RS2012r1 Personal Register user
my Hobbies R/C Turbines Jets Models


Top
 Profile  
Reply with quote  
 Post subject: Re: Window.Close RS 2012r1.2
PostPosted: Fri Nov 30, 2012 8:02 pm 
Offline
User avatar

Joined: Wed Sep 20, 2006 5:12 pm
Posts: 680
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 Lion v10.7.5 and Real Studio 2012r1 Pro And Windows 7 RS2012r1 Personal and Linux RS2012r1 Personal Register user
my Hobbies R/C Turbines Jets Models


Top
 Profile  
Reply with quote  
 Post subject: Re: Window.Close
PostPosted: Fri Nov 30, 2012 10:05 pm 
Offline

Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12388
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
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group