View Single Post
 
Old 05-26-2023, 03:34 AM
Debaser's Avatar
Debaser Debaser is offline Windows 10 Office 2016
Competent Performer
 
Join Date: Oct 2015
Location: UK
Posts: 221
Debaser will become famous soon enough
Default

A constant cannot be the result of a function since that result could change. Similarly you can't declare a constant and then set its value in another routine.

You can either use a variable - which I assume is what you meant with your second option - or use a function that returns the value you want. You can then simply use that function name as you would the constant.
Reply With Quote