2020-06-09 08:27 AM
2020-06-09 09:51 AM
n = REQUEST ("DateTime", format_string, datetimestring)
2020-06-22 07:00 AM
2020-06-22 06:49 PM
TEXT B, 0, f with TEXT B, 0, "<SHORTDATE>"Save as new short date object.
2020-06-23 09:00 AM
Lingwisyer wrote:
This thread is regarding the AC object and not about actual scripting
2020-06-23 07:45 PM
f = "" ch = OPEN ("DateTime", "", "%d/%m/%y") n = INPUT (ch, "", "", f) CLOSE (ch)
2020-06-23 09:25 PM
2020-06-25 06:20 AM
2020-06-25 03:20 PM
!define style "name" "font", size, anchor, face code define style "text 01" "Arial Narrow", 2.5, 5, 0 set style "text 01" text 0, 0, f ("f" is from Lingwisyer's script)
2020-06-25 06:56 PM
2021-02-03 11:14 AM
2021-02-03 02:05 PM
if bManualDate = 0 then lock "stManualDate" hideparameter "stManualDate" endifFor on/off (boolean) parameters "0" is off and "1" is on. I personally don't like using the "0,1" values when writing my script because the idea of writing "=" for a boolean parameter bothers me, seeing as though it is only necessary for the off value; for example, if the value is on we simple write:
if bManualDate thenbecause bManualDate returns the positive value of 1
if not(bManualDate) thenbecause when it is turned off it equals "0", the negative response, so to run the "if" command we need a positive response so we turn it into a positive with the "not()" function as "not(0)" = "1". make sense?
if not(bManualDate) then lock "stManualDate" hideparameter "stManualDate" endifWriting it like this makes it easy to read what it is doing.
2021-02-03 05:02 PM
Kristian wrote:
if bManualDate then
/
if not(bManualDate) then
2021-02-04 05:01 PM