QB64 Phoenix Edition
Variable characters - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3)
+---- Forum: Utilities (https://qb64phoenix.com/forum/forumdisplay.php?fid=8)
+---- Thread: Variable characters (/showthread.php?tid=3129)



Variable characters - eoredson - 10-17-2024

Did you ever notice there are 32 symbols on the standard 102-key natural keyboard and only 1 can be used in a variable name!?

Code: (Select All)
Rem all 32 symbolic characters.
'dim x~.a as inetegr
'dim x.a` as intrger
'dim x!.a as integer
'dim x@.a as integer
'dim x#.a as integer
'dim x$.a as integer
'dim x%.a as integer
'dim x^.a as integer
'dim x&.a as integer
'dim x*.a as integer
'dim x(.a as integer
'dim x).a as integer
'dim x_.a as integer
'dim x-.a as integer
'dim x+.a as integer
'dim x=.a as integer
'dim x|.a as integer
'dim x\.a as integer
'dim x{.a as integer
'dim x[.a as integer
'dim x}.a as integer
'dim x].a as integer
'dim x:.a as integer
'dim x;.a as integer
'dim x".a as integer
'dim x<.a as integer
'dim x,.a as integer
'dim x>.a as integer
'dim x'.a as integer
Dim x.a As Integer
'dim x?.a as integer
'dim x/.a as integer



RE: Variable characters - SMcNeill - 10-17-2024

Actually, I can easily use 12 symbols in my variable names.  Can I ask what version of BASIC you're referring to, as I don't think it's QB64.  Now, is there any missing symbols that I didn't include?   You have to decide that for yourself!

Code: (Select All)
Dim xa% '% is used herre
Dim xa! '! is used here
Dim xa& '& is used here
Dim xa~% '~ is used here
Dim xa# '# is used here
Dim xa` '` is used here
Dim xa$ '$ is used here
Dim x.a '. is used here
Dim x_a '_ is used here
Dim x(0) '( is used here
Dim a(0) ' ) is used here
Dim xa(0, 0) ', is used here



RE: Variable characters - eoredson - 10-17-2024

More about symbols:

Code: (Select All)
Rem Dual operators:
x`1 = 1
x~` = 1
x%% = 1
x~& = 1
x&& = 1
x## = 1
x%& = 1
x$1 = "a"

Rem Triple operators:
x~&& = 1
x~%& = 1

Rem  Doesn't exist:
x$$ = "a"



RE: Variable characters - eoredson - 10-19-2024

In the 'C' programming language there are also some symbols:

Code: (Select All)
c=1
c=c+1
c++
c+=1



RE: Variable characters - eoredson - 10-19-2024

In the SICK interpreter the following triple operators exist:

Code: (Select All)
Triple variable assignment operators:

  +++  increment variable by one.
  ---  decrement variable by one.
  !!=  assign not value, for example: x!!=10
  &&=  assign and value
  ||=  assign or value
  ++=  assign addition value
  --=  assign negative value
  **=  assign multiple value
  //=  assign division value
  \\=  assign integer division value
  ^^=  assign power value
  ^+=  exponentiate value
  ^-=  exponentiate negative value
  <<=  shift left by multiples of 2
  >>=  shift right by multiples of 2



RE: Variable characters - SMcNeill - 10-19-2024

I must be missing something here.  What's all this got to do with QB64, and what's the utility?  Are you asking for help?  Trying to teach a lesson?  Just rambling off-topic?

You've completely lost me here as to what you're going on about in this entire thread.


RE: Variable characters - eoredson - 10-21-2024

(10-19-2024, 03:45 AM)SMcNeill Wrote: I must be missing something here.  What's all this got to do with QB64, and what's the utility?  Are you asking for help?  Trying to teach a lesson?  Just rambling off-topic?

You've completely lost me here as to what you're going on about in this entire thread.

Sorry, I was being entirely off-topic concerning posts about symbols, operators, and variable assignments in this thread.

Don't worry about it Exclamation 

Erik.


RE: Variable characters - eoredson - 10-21-2024

Quote:What's all this got to do with QB64, and what's the utility?
Actually it has a lot to do with QB64 and the SICK utility. This file can be found on several posts when searching for:

  SICK64F9.ZIP

specifies many additional triple symbolic operators..

Erik.