[nsb-appstudio] I can't get onshow() to fire...

5 views
Skip to first unread message

scrammacat@yahoo.com [nsbasic-app]

unread,
Apr 10, 2017, 11:05:21 AM4/10/17
to nsbas...@yahoogroups.com
 

Hello,


I have firstform set to Form1 in my project properties.  I have this event assigned in Form1:


Form1.onshow=function(){

  NSB.MsgBox("OnShow was fired");

}


Can anyone explain why this event won't fire?


Thanks!

__._,_.___

Posted by: scram...@yahoo.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

'George Henne' gh@nsbasic.com [nsbasic-app]

unread,
Apr 10, 2017, 12:40:49 PM4/10/17
to Nsbasic App
 

In the Chrome Debugger console, type

Form1.onshow

Does the function display?

George Henne
NS BASIC Corporation
http://www.nsbasic.com


>Hello,
>
>
>
>I have firstform set to Form1 in my project properties.  I have this
>event assigned in Form1:
>
>
>
>Form1.onshow=function(){
>
>  NSB.MsgBox("OnShow was fired");
>
>
>}
>
>
>Can anyone explain why this event won't fire?
>
>
>
>Thanks!
>
>

__._,_.___

Posted by: "George Henne" <g...@nsbasic.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

scrammacat@yahoo.com [nsbasic-app]

unread,
Apr 10, 2017, 4:19:57 PM4/10/17
to nsbas...@yahoogroups.com
 

I found the problem:  I had added a new form, and renumbered the new one as Form1 (and the new one as Form2). 


 The original OnKeyPress event was still sitting in in the "old Form1" and aliasing the new event.  The form renaming apparently doesn't propagate to event definitions.  I deleted the erring event, and it works!

Thanks.

__._,_.___

Posted by: scram...@yahoo.com

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___
Reply all
Reply to author
Forward
0 new messages