This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Base 0 | |
Option Compare Database | |
Option Explicit | |
Option Private Module | |
'Dependency: basErrorHandler.bas | |
'https://gist.github.com/DataZombies/4751155 | |
Private Type CopybookType | |
ID As Long |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Base 0 | |
Option Compare Database | |
Option Explicit | |
Option Private Module | |
'*********************************************************************************************** | |
' ErrorHandler (Public Sub) | |
' | |
' PARAMETERS: | |
' theForm - String - ByVal - Optional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This code gives you a browser alert and confirm or a Cordova alert and confirm dialog boxes depending on the platform | |
// app-wide constants & modified functions | |
var APP_NAME = 'A Truly GREAT app', | |
DESKTOP = true, // a constant controlling whether browser alert and confirm or Cordova alert and confirm are used. | |
ConfirmReturnValue = -1, | |
Alert = function (message) { | |
alert (message); | |
}, | |
Confirm = function(message) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//AppDelegate.h | |
@property(nonatomic,assign) NSArray *documentPaths; | |
@property(nonatomic,assign) NSError *error; | |
@property(nonatomic,assign) NSFileManager *fileManager; | |
@property(nonatomic,assign) NSString *documentsDir; | |
//AppDelegate.m | |
@synthesize error, fileManager, documentPaths, documentsDir; | |
... |