Generic selectors
Exact matches only
Search in title
Search in content

Type problem in erlang?

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


    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)
Reply To: Type problem in erlang?
Your information:

<a href="" title="" rel="" target=""> <blockquote cite=""> <code> <pre class=""> <em> <strong> <del datetime="" cite=""> <ins datetime="" cite=""> <ul> <ol start=""> <li> <img src="" border="" alt="" height="" width="">