Am I thick?

Post Reply
enonod
Posts: 62
Joined: Tue Nov 08, 2016 1:54 pm

Am I thick?

Post by enonod »

I am desperately trying to construct a date...
I have all the preliminaries regarding the pm Object inside each main (saving space here).
Taken from the help file but All Result in: Error in line: 2 - Type mismatch

sub Main
print DateSerial(2018,09,25)
end sub

Sub Main
Print DateValue("Sep 25, 2018")
End Sub

Sub Main
MsgBox Format(Date,"dd.mm.yyyy")
End Sub

Sub Main
pm.Range("L1").Value = Format(Date,"dd.mm.yyyy")
End Sub
SuperTech
SoftMaker Team
SoftMaker Team
Posts: 3185
Joined: Wed Mar 11, 2020 5:31 pm

Re: Am I thick?

Post by SuperTech »

Thanks for reporting this problem. I ran these codes and there is no error found. Please share the associated file of PlanMaker 2021 and Script in which you are getting this problem so that we can do further investigation for resolution.

If you want to send it to us privately, please send us an e-mail to forum[at]softmaker.de

Please also include the forum URL of this topic so that we can trace your e-mail.
https://forum.softmaker.com/viewtopic.p ... 673#p63918
Post Reply

Return to “BasicMaker 2018 for Windows”