[Solved] Tokenize and compare dates in xslt 1.0

Xalan supports the EXSLT str:tokenize() function, so that will take care of that. After that, you just need to sort the tokens by the individual date & time components, and grab the last one. <xsl:for-each select=”str:tokenize($dates, ‘;’)”> <!– sort by year –> <xsl:sort select=”substring(., 9, 4)”/> <!– sort by month –> <xsl:sort select=”string-length(substring-before(‘JanFebMarAprMayJunJulAugSepOctNovDec’, substring(., 1, … Read more

[Solved] } Expected in Routine

Learning how to format code is a CRITICAL skill for writing code that works correctly. private void PathExist() { if (Directory.Exists(folderBrowserDialog.SelectedPath + @”\”)) { lblExist.Visible = false; Properties.Settings.Default.FirstTime = false; // Create a new instance of the Form2 class MainFrm MainForm = new MainFrm(); MainForm.Show(); Hide(); //This is where Visual Studio is telling me that … Read more

[Solved] Does this function I made correctly append a string to another string?

First, char *stuff_to_append_to[] is an array of pointers of undetermined length, that is not a valid parameter, as the last dimension of an array must be specified when passed to a function, otherwise, pass a pointer to type. Next, char **stuff_to_append is a pointer to pointer to char and is completely valid, but given your … Read more

[Solved] How to elevate privileges for child process

OK, this shouldn’t actually be too hard, provided that UAC is configured with the default settings. I believe that the reason CreateProcessWithLogonW() is failing is that the target executable requires elevation. If you instead run an executable that is not configured to require elevation, it should work. At that point, you are running in the … Read more

[Solved] How can i convert the string to int and count? [closed]

EDIT for this code to work X = string.Format(“Frame_X_{0} “, i + 1); Y = string.Format(“Frame_Y_{0} “, i + 1); int c = Convert.ToInt32(ExtractNumbers(X));//modfied code line int d = Convert.ToInt32(ExtractNumbers(Y));//modfied code line framesNumberX += c; framesNumberY += d; you need to extract number something like this static string ExtractNumbers( string expr ) { return string.Join( … Read more

[Solved] VBA to ignore cell formating when adding a specific number using a userform

Since there is a single piece of code writing in column C:C, adapt it in the next way: Instead of: Sheets(“Sheet3”).Range(“C4”).Select Selection.Borders.Weight = xlThin ActiveCell.Value = “.” & TextBox3 Try this, please: If TextBox3.Text = “6” then Sheets(“Sheet3”).Range(“C4”).NumberFormat = “@” end if With Sheets(“Sheet3”).Range(“C4”) .Borders.Weight = xlThin .Value = “.” & TextBox3.Text End With 2 … Read more

[Solved] String.Format Issue [closed]

Is this working? string s = “$(\”#container\”).notify();$(\”#container\”).notify(\”create\”, \”basic-template\”, {{ title: ‘{0}’, text: ‘{1}’}},{{ expires: false, speed: 1000 }});” 1 solved String.Format Issue [closed]