Prompt user for input

Is it possible to prompt the user for input, then read the entered text?

Thanks
meherts - Thu Jun 10 14:16:09 EDT 2010

Re: Prompt user for input
a_vestlin - Fri Jun 11 01:42:20 EDT 2010

Hi,

You could use a dialog box the get the information from the user. Something like this:

string getUserInput()
{
    DB db
    DBE input 
    string s
    
    void closeCB(DB db)
    {
        release(db)   
    }
        
    db = create("User interaction", styleCentered)
    input = field(db, "Input", "", 30, false)
    apply(db, "OK", closeCB)
    close(db, false, closeCB)
    
    block(db)
    s = get(input)
    destroy(db)
    return(s)
}

 


/Anders

 

Re: Prompt user for input
meherts - Fri Jun 11 13:16:43 EDT 2010

a_vestlin - Fri Jun 11 01:42:20 EDT 2010

Hi,

You could use a dialog box the get the information from the user. Something like this:

string getUserInput()
{
    DB db
    DBE input 
    string s
    
    void closeCB(DB db)
    {
        release(db)   
    }
        
    db = create("User interaction", styleCentered)
    input = field(db, "Input", "", 30, false)
    apply(db, "OK", closeCB)
    close(db, false, closeCB)
    
    block(db)
    s = get(input)
    destroy(db)
    return(s)
}

 


/Anders

 

Thank you so much,
meherts