Code: Select all
#Success = 45
var = #Success
Can you incarnate this a VERY handy option?

Code: Select all
#Success = 45
var = #Success
Code: Select all
#Success = 45
#Failure = 45
var = #Success
Debug var ; Does the IDE show #Success or #Failure ?
No, not at all.Korolev Michael wrote:This means, there is a mistake in code, because you bound two equally defined constants.
Korolev Michael wrote:Does anyone assign two equal values for two constants, in real project?
Code: Select all
#NumberOfWives = 1
#NumberOfChildren = 1
Code: Select all
Select GadgetType()
Case #PB_GadgetType_Button
Flags = #PB_Gadget_Toggle
Case #PB_GadgetType_Tree
Flags = #PB_Gadget_CheckBoxes
EndSelect
Another similar quote I read somewhere was the following: "It's like trying to get back eggs and flour from a backed cake"PB wrote:What you're asking is like asking where the water in a hose came from. The hose
is the variable name, and the water is the variable value. So where did the water
come from? Nobody knows.
Code: Select all
#alone=1
#one=1
#single=1
var=#one
Debug var ; Shows "#one" instead of "1"
Code: Select all
#one;
Code: Select all
#one;
#two
Code: Select all
#one;
#alone
Code: Select all
#status_ok=1
#status_wrongname=2
#status_filenotfound=4578
[...]
result = CheckSomething()
If result = #status_filenotfound
MessageRequester("Error","File not found!")
EndIf