So I'm starting to work on a date picker that would be called using
The PowerShell script I'm editing would send the date that the user picked back in the MMDDYYYY format and use it as an Int32 to pass it back as the $LASTEXITCODE so that it can be stored in "a". Then you could convert it to a string and read it as a date using your own date parsing functions. For instance, today's date could come back to QB64 as:
SHELL$
= "PowerShell -ExecutionPolicy Bypass " + CHR$(34) + "&'" + _STARTDIR$ + "\GetNewDate.ps1';exit $LASTEXITCODE" + CHR$(34) olddate$ = Remove(olddate$, "-")
month$
= "0" + MID$(newdate$
, 1, 1) day$
= MID$(newdate$
, 2, 2) year$
= MID$(newdate$
, 4, 4) month$
= MID$(newdate$
, 1, 2) day$
= MID$(newdate$
, 3, 2) year$
= MID$(newdate$
, 5, 4)newdate$ = month$ + "-" + day$ + "-" + year$
'$INCLUDE:'Remove.BM'
This would prevent you from having to output the date to a text file and read it back in.
:)
[ You are not allowed to view this attachment ]
[ You are not allowed to view this attachment ]