The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
func key with a member of class
#1
Hi

I try to learn how to use a class and i have an issue with a single cmd:
why i can t use a.login with key ?
Code:
Copy      Help
class testC
    str login
    str pass

testC a

a.login="mylogin"
a.pass="mypass"

key (a.login);;<-- is not good

str login="mylog2"

key (login) ;;<-- is good


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)