Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Type problem in erlang?

Viewing 1 post (of 1 total)
  • Author
  • #40288


    I have a problem with the dets module. The function match(Name, Pattern) is giving me trouble. I have a dets table that stores records
    with 8 elements. Here is a code section to describe the problem:

    LocId = 1323,
    dets:match(TableId, {‘_’,’_’,LocId,’$1′,’_’,’_’,’_’,’_’,’_’}).

    This does not work and returns an empty list. But the following works:

    dets:match(TableId, {‘_’,’_’,1323,’$1′,’_’,’_’,’_’,’_’,’_’}).

    Why is that? LocId = 1323 and should work as well?

    Another question:
    When a list of integers is returned
    they sometimes change type to ASCI.

    is returned as:
    [” “, /s, [10]]

    can this be prevented?

Viewing 1 post (of 1 total)
  • The forum ‘Telecom Design’ is closed to new topics and replies.