Click here to Skip to main content
15,891,657 members
Home / Discussions / C#
   

C#

 
QuestionCrossing Threads Pin
FJJCENTU18-Sep-09 4:30
FJJCENTU18-Sep-09 4:30 
AnswerRe: Crossing Threads Pin
Luc Pattyn18-Sep-09 4:44
sitebuilderLuc Pattyn18-Sep-09 4:44 
GeneralRe: Crossing Threads Pin
FJJCENTU18-Sep-09 5:19
FJJCENTU18-Sep-09 5:19 
GeneralRe: Crossing Threads Pin
Luc Pattyn18-Sep-09 5:44
sitebuilderLuc Pattyn18-Sep-09 5:44 
Questionquestions about an array? Pin
JollyMansArt18-Sep-09 4:14
JollyMansArt18-Sep-09 4:14 
AnswerRe: questions about an array? Pin
harold aptroot18-Sep-09 4:20
harold aptroot18-Sep-09 4:20 
GeneralRe: questions about an array? Pin
JollyMansArt18-Sep-09 4:33
JollyMansArt18-Sep-09 4:33 
GeneralRe: questions about an array? Pin
Ian Shlasko18-Sep-09 4:37
Ian Shlasko18-Sep-09 4:37 
GeneralRe: questions about an array? Pin
harold aptroot18-Sep-09 4:38
harold aptroot18-Sep-09 4:38 
GeneralRe: questions about an array? Pin
Keith Barrow18-Sep-09 4:38
professionalKeith Barrow18-Sep-09 4:38 
GeneralRe: questions about an array? Pin
JollyMansArt18-Sep-09 4:44
JollyMansArt18-Sep-09 4:44 
GeneralRe: questions about an array? Pin
harold aptroot18-Sep-09 4:46
harold aptroot18-Sep-09 4:46 
GeneralRe: questions about an array? Pin
Keith Barrow18-Sep-09 4:53
professionalKeith Barrow18-Sep-09 4:53 
GeneralRe: questions about an array? Pin
harold aptroot18-Sep-09 4:57
harold aptroot18-Sep-09 4:57 
GeneralRe: questions about an array? Pin
Richard MacCutchan18-Sep-09 5:03
mveRichard MacCutchan18-Sep-09 5:03 
GeneralRe: questions about an array? Pin
harold aptroot18-Sep-09 5:05
harold aptroot18-Sep-09 5:05 
GeneralRe: questions about an array? Pin
Keith Barrow18-Sep-09 5:15
professionalKeith Barrow18-Sep-09 5:15 
GeneralRe: questions about an array? Pin
harold aptroot18-Sep-09 5:26
harold aptroot18-Sep-09 5:26 
GeneralTerinary commands then what is wrong with this example? As I am learning to use them... Pin
JollyMansArt18-Sep-09 5:41
JollyMansArt18-Sep-09 5:41 
for (int i = 0; i < NewServerVersionTableArray.Length)
{
    //New good codeing Tirshery Coding...
    //x = DynamicArray == null ? -1 : DynamicArray.Length;
    //or
    //if (DynamicArray == null) x = -1; else x = DynamicArray.Length;
    //result = condition ? true-value : false-value

    /*
    //Old Way
    try
    {
        File.GetAccessControl(MyAppLocation + "\\" + MyAppName);
        Process oAccess = Process.Start(MyMSAccessPath, MyAppLocation + "\\" + MyAppName);
        MyOpenProcessComplete = true;
    }
    catch
    {
        strLogText = "Execution Rule 1: Unable to open file due to ACL restrictions.";
        ErrorLogWriter(strLogText);
        strLogText = "trying to open: " + MyMSAccessPath + " " + MyAppLocation + "\\" + MyAppName;
        ErrorLogWriter(strLogText);
    }
    */

    if (NewServerVersionTableArray[i].AssistSuiteApplication.MasterApplication = true.ToString())
    {

        string MyAppLocation = NewServerVersionTableArray[i].AssistSuiteApplication.PAppLocWS;
        string MyAppName = NewServerVersionTableArray[i].AssistSuiteApplication.FAppNameWS;

        Process MyApplicationOpen = NewServerVersionTableArray[i].AssistSuiteApplication.MasterApplication = true.ToString() ?
        File.GetAccessControl(MyAppLocation + "\\" + MyAppName)
        Process oAccess = Process.Start(MyMSAccessPath, MyAppLocation + "\\" + MyAppName)
        :
        null

    }


}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////



Basically if MasterApplicaiton = true to use the tirshery command to try and open a file?
GeneralRe: Terinary commands then what is wrong with this example? As I am learning to use them... Pin
harold aptroot18-Sep-09 5:47
harold aptroot18-Sep-09 5:47 
GeneralRe: Terinary commands then what is wrong with this example? As I am learning to use them... Pin
JollyMansArt18-Sep-09 5:55
JollyMansArt18-Sep-09 5:55 
GeneralRe: Terinary commands then what is wrong with this example? As I am learning to use them... Pin
JollyMansArt18-Sep-09 6:11
JollyMansArt18-Sep-09 6:11 
GeneralRe: Terinary commands then what is wrong with this example? As I am learning to use them... Pin
JollyMansArt18-Sep-09 5:52
JollyMansArt18-Sep-09 5:52 
GeneralRe: questions about an array? Pin
Keith Barrow18-Sep-09 6:24
professionalKeith Barrow18-Sep-09 6:24 
GeneralRe: questions about an array? Pin
Richard MacCutchan18-Sep-09 5:02
mveRichard MacCutchan18-Sep-09 5:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.