Author Topic: Can someone help me with some code....  (Read 3751 times)

0 Members and 1 Guest are viewing this topic.

Offline Wretchedlout

  • LV3 Member (Next: 100)
  • ***
  • Posts: 64
  • Rating: +6/-0
    • View Profile
Can someone help me with some code....
« on: May 13, 2012, 06:22:33 pm »
I have no clue how to convert a string to binary to a string. can someone help me?
I want it for a chat like thing. But i seem to not be able to Send( a string.
Thanks :)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Can someone help me with some code....
« Reply #1 on: May 13, 2012, 06:53:54 pm »
Send( and Get( are meant to be used with CBL/CBR systems (data probes), not with other calculators. To transfer data between calculators, use GetCalc(. It works like this:
  • The sending calculator is put into a low-power mode. That means it shouldn't be actively calculating something or running a program, or if it is running a program, that it's at a Pause, Input, or similar state. Otherwise, the transfer won't work.
  • The receiving calculator calls GetCalc(<variable>. If <variable> exists on the sending calculator, it will be copied to the receiving calculator, overwriting any previous variable of the same name. If it doesn't work, it'll give up immediately, no waiting.
You can only transfer the variable types you can use DelVar on, so it works for reals, lists, matrices, strings, and so on.
« Last Edit: May 13, 2012, 06:55:14 pm by Deep Thought »