Posts by JDias • 73 points
13 posts
-
-1
votes1
answer23
viewsQ: C#: Number formatting (with dot)
I’m working on ASP.NET Core MVC and C#. I needed to present the number, e.g., (double) 1000, as 1,000, when presently the number is presented as 1000 . The property in the model is as:…
-
2
votes1
answer34
viewsQ: ASP.NET Core: session duration
I did a program in ASP.NET Core MVC, which has the class Startup as: public class Startup { public Startup(IConfiguration configuration) { Configuration = configuration; } public IConfiguration…
-
0
votes1
answer33
viewsA: Compressing files in Powershell 4
Since I couldn’t install Compress-Archive on PS4, I solved my question by using the method CopyHere, as follows: $fileAge = 180 [byte[]] $emptyZipBytes =…
-
0
votes1
answer37
viewsA: Widget to enter date and time
I ended up using the jquery and the jQuery UI. So I created controls in the code HTML as the following: <input class="font-md" type="text" id="datepicker" name="ausData" value=""…
-
1
votes0
answers33
viewsQ: vbs : how to wait for the end of the copy execution
In the following programme on VBScript I try to copy a group of files (in fileCollection) to an already created zip file: Set FSO = CreateObject("Scripting.FileSystemObject")'Reference the Text…
-
0
votes1
answer33
viewsQ: Compressing files in Powershell 4
I have Windows with Powershell 4 on a server. I would like to compress files, and for that I know the Compress-Archive of Powershell. How do I install it? You need to touch . NET Framework? In…
-
0
votes1
answer37
viewsQ: Widget to enter date and time
I’m using the jQuery and the jQuery UI on the front end of my web application. With jQuery UI can use widget datepicker (which can only be dated, it seems to me...), and I have used it in other…
-
0
votes0
answers28
viewsQ: Refer to a table in another database on the same server
I’m making an app on C# and .NET Core (ASP.NET Core MVC) using the EntityFrameworkCore and in the Connection String access to a database, say DB1, and I can read the tables in this database…
-
1
votes2
answers64
viewsA: How to copy a string in C?
You can use the strdup of C: #include <stdlib.h> int main() { char *s="..........."; char *s_copy=strdup(s); // this copies the string // ... }…
-
2
votes0
answers58
viewsQ: Preventing multiple threads for the same routine and the same user?
I’m developing a web app on ASP.NET Core MVC and some routines are called by clicking a button on the web page. It turns out you can push this button multiple times, so I need some…
-
0
votes1
answer26
viewsA: Excel VSTO: Iterate cells according to their properties
I found the following solution: // Gets the selected range Excel.Worksheet activeWorksheet = Globals.ThisAddIn.Application.ActiveSheet; Excel.Range activeRange =…
-
0
votes1
answer26
viewsQ: Excel VSTO: Iterate cells according to their properties
I’m doing an Excel Add-In in Visual C# (VSTO)... I wanted to iterate on the cells of a selection (which may be discontinuous) that are not "Hidden" (hidden). This selection may be large. So, if you…
-
1
votes1
answer56
viewsQ: Incorrect link in C program and Assembly
I did an Assembler routine to calculate the exponential. I compiled it, and I get the Object Exp file. o The C++ program to take advantage of this routine is the type of: #include <iostream>…