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
Function DeTabString(p_strInput) | |
Const TAB_SIZE = 8 | |
Const FILLER = " " | |
Dim strInput, intCounter | |
'Initialise | |
strinput = p_strInput | |
DeTabString = "" |
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
// Function to display UIAlert when "Hit Me!" button is clicked | |
@IBAction func showAlert(){ | |
//New instance of UIAlertController - Apple view controller | |
let showAlert = UIAlertController(title: "Hello, World", message: "This is my first swift app", preferredStyle: .alert) | |
//New instance of UIAlertAction - Apple view controller action | |
let action = UIAlertAction(title: "Awesome sauce", style: .default, handler: nil) | |
//Add action to view controller | |
showAlert.addAction(action) | |
//Present action on view controller with animation |
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
/// <summary> | |
/// Generic type SQL Query Fetch | |
/// </summary> | |
/// <typeparam name="T">Generic</typeparam> | |
/// <param name="connectionString">SQL Connection string</param> | |
/// <param name="sql">SQL select query</param> | |
/// <returns>List Object of type inferred</returns> | |
public async Task<IEnumerable<T>> QueryTask<T>(string connectionString, string sql) | |
{ | |
using IDbConnection db = new SqlConnection(connectionString); |
OlderNewer