Paradox Community

Items in pnews.paradox-programming

Subject:Re: constantNameToValue for user-defined constants?
Date:28 Jul 2022 01:30:45 -0400
From:"Kevin Zawicki" <numberjack@wi.rr.com>
Newsgroups:pnews.paradox-programming


Since you set the constant value...

you can do this to see the value

 const
  myVal = number(13)  ;better to always specially cast constants? 
 endconst
 var
  anyVal anyType
 endvar

 view(myVal)   ;viewing constant

 anyVal = myVal
 anyVal.view()


What would be a practical example of needing constantNameToValue for user
defined constants?



"Thies Grimm" <thies.grimm@t-online.de> wrote:
>
>hi,
>is there a simular function like constantNameToValue for user-defined cunstants?
>
>if I want to know the value of fbTable and I have fbTable just as string
>I might do:
> myValue = constantNameToValue(stTable) 
>
>
>Is there a simular function for my own constants?
>const
>  fbOffice = 128
>endConst
>
>
>
>
>
>


Copyright © 2004 thedbcommunity.com