johnB Active Member Licensed User Longtime User Aug 13, 2016 #1 I have a Modal Form the works as expected in Debug mode but falls over in Release mode I have it working in another version of the program but can't see what the difference is. I've attached the error Logand inserted the code where it falls over in release mode. Yes there isn't a ".bjl" file but neither is there one in the app that works Regards Code: Copy Log("2") localModalType = Query1 If Query1.Contains("Portfolio") Or Query1.Contains("&") Or Query1.Contains("We Are NOT") Then frm.RootPane.LoadLayout("Modal1") Else Attachments New Text Document.txt New Text Document.txt 1.4 KB · Views: 420
I have a Modal Form the works as expected in Debug mode but falls over in Release mode I have it working in another version of the program but can't see what the difference is. I've attached the error Logand inserted the code where it falls over in release mode. Yes there isn't a ".bjl" file but neither is there one in the app that works Regards Code: Copy Log("2") localModalType = Query1 If Query1.Contains("Portfolio") Or Query1.Contains("&") Or Query1.Contains("We Are NOT") Then frm.RootPane.LoadLayout("Modal1") Else
Daestrum Expert Licensed User Longtime User Aug 13, 2016 #2 Are you sure the one that works is going through the same logic with the same Query1? When the 'if' statement fails it won't attempt to load the (non existent) layout and you won't get the error, but the ide will have a warning the layout file doesn't exist. Upvote 0
Are you sure the one that works is going through the same logic with the same Query1? When the 'if' statement fails it won't attempt to load the (non existent) layout and you won't get the error, but the ide will have a warning the layout file doesn't exist.
johnB Active Member Licensed User Longtime User Aug 13, 2016 #3 I'm not sure that I understand. It works in the same program in Debug mode and the "If" statement isn't failing, it's trying to load the form because the Query contains 'Portfolio" Upvote 0
I'm not sure that I understand. It works in the same program in Debug mode and the "If" statement isn't failing, it's trying to load the form because the Query contains 'Portfolio"
johnB Active Member Licensed User Longtime User Aug 14, 2016 #4 Daestrum, thanks for your reply. I've sorted it out. With the program that was working, the modal forms were built with Screen Builder When I build the modal forms in the new program with the Internal Designer it seems to be working. I don't have Screen Builder installed on this computer and don't want to install it. "One shortcut too many" lessons learnt Upvote 0
Daestrum, thanks for your reply. I've sorted it out. With the program that was working, the modal forms were built with Screen Builder When I build the modal forms in the new program with the Internal Designer it seems to be working. I don't have Screen Builder installed on this computer and don't want to install it. "One shortcut too many" lessons learnt