DrinkWater623
DrinkWater623
CC#
Created by DrinkWater623 on 10/18/2024 in #help
Null Warnings
but I want the user (me) to indicate one of the 3
24 replies
CC#
Created by DrinkWater623 on 10/18/2024 in #help
Null Warnings
Since I have you all here... should I put that enum outside of the class? Not sure how I can call it outside of the class... should or can I add Static to it?
24 replies
CC#
Created by DrinkWater623 on 10/18/2024 in #help
Null Warnings
THANK YOU...., it is happy now
public Text2Sql ( FileInfo fileInfo, SqlTable tableObj, InsertMode insertMode, bool throwExceptions )
{
ErrMsg = "";
AppendMode = insertMode;
File = new CsvFileInfo(fileInfo, 100);
Tb = tableObj;

if ( !InitialValidation() )
if ( throwExceptions ) throw new Exception($"Error: {ErrMsg}");
else return;

}
public Text2Sql ( FileInfo fileInfo, SqlTable tableObj, bool throwExceptions ) : this(fileInfo, tableObj, InsertMode.Append, throwExceptions) { }
public Text2Sql ( FileInfo fileInfo, SqlTable tableObj ) : this(fileInfo, tableObj, InsertMode.Append, true){}
public Text2Sql ( FileInfo fileInfo, SqlTable tableObj, InsertMode insertMode, bool throwExceptions )
{
ErrMsg = "";
AppendMode = insertMode;
File = new CsvFileInfo(fileInfo, 100);
Tb = tableObj;

if ( !InitialValidation() )
if ( throwExceptions ) throw new Exception($"Error: {ErrMsg}");
else return;

}
public Text2Sql ( FileInfo fileInfo, SqlTable tableObj, bool throwExceptions ) : this(fileInfo, tableObj, InsertMode.Append, throwExceptions) { }
public Text2Sql ( FileInfo fileInfo, SqlTable tableObj ) : this(fileInfo, tableObj, InsertMode.Append, true){}
24 replies
CC#
Created by DrinkWater623 on 10/18/2024 in #help
Null Warnings
I tried to call the other constructors first, but it said, cannot call it like a method
24 replies
CC#
Created by DrinkWater623 on 10/18/2024 in #help
Null Warnings
Thanks, Any other solutions. I am on version 10.0 and that option is not available.
24 replies
CC#
Created by DrinkWater623 on 10/18/2024 in #help
Null Warnings
I am not sure what you mean. I changed the optional part on all the constructor, and the warning is the same. It does not know that the method called handles all of the initialization. Can you show me what you mean?
24 replies