Cant for the life of me figure it out. Probably doesn't help I am little new to 
this. I know its simple but I cant see it. Help would be appreciated. Sorry in 
advance for the newbyness. 
    
    
    import os, iup
    #Super Spy
    proc chrome(): string =
        var x: string
        x="test"
    proc doc(): string =
        var x: string
        x="string"
    block menu:
        echo """
          _________                             _________
        /   _____/__ ________   ___________   /   _____/_____ ___.__.
        \_____  \|  |  \____ \_/ __ \_  __ \  \_____  \\____ <   |  |
        /        \  |  /  |_> >  ___/|  | \/  /        \  |_> >___  |
        /_______  /____/|   __/ \___  >__|    /_______  /   __// ____|
                \/      |__|        \/                \/|__|   \/
                
                Welcome to Super Spy please slecet your option.
                1. Chrome Grabber
                2. Documents Grabber"""
        case readLine(stdin)
        of "1":
            chrome()
        of "2":
            doc()
        else: echo "Please pick a real option."
    
    

And it produces this. 
    
    
    Hint: system [Processing]
    Hint: grabber [Processing]
    Hint: os [Processing]
    Hint: strutils [Processing]
    Hint: parseutils [Processing]
    Hint: math [Processing]
    Hint: algorithm [Processing]
    Hint: times [Processing]
    Hint: winlean [Processing]
    Hint: dynlib [Processing]
    Hint: ospaths [Processing]
    Hint: iup [Processing]
    grabber.nim(23, 15) Error: expression 'chrome()' is of type 'string' and 
has to be discarded
    
    

Reply via email to