(self, name, value)
Set a variable in memory.
Set a variable in memory.
Set a variable in memory .
def set_variable(self, name, value):
        """Set a variable in memory."""
        name = name.upper()
        if isinstance(value, text_type):
            value = self.codepage.unicode_to_bytes(value)
        elif isinstance(value, bool):
            value = -1 if value else 0
        if b'(' in name:
            name = name.split(b'(', 1)[0]
            self.arrays.from_list(value, name)
        else:
            self.memory.set_variable(name, [], self.values.from_value(value, name[-1:]))
def set_variable ( self , name , value ) : name = name . upper ( ) if isinstance ( value , text_type ) : value = self . codepage . unicode_to_bytes ( value ) elif isinstance ( value , bool ) : value = - 1 if value else 0 if b'(' in name : name = name . split ( b'(' , 1 ) [ 0 ] self . arrays . from_list ( value , name ) else : self . memory . set_variable ( name , [ ] , self . values . from_value ( value , name [ - 1 : ] ) )