Or use:
grabinfo=val(getgadgettext(UsernameBox))
And for making the edit gadget have a password character (such as only asterisks are visible), use this function:
function setPassword(editHandle as integer,char as string)
lresult as dword
lresult = call dll(user32num,"SendMessageA",windowHandle(editHandle),0xCC,asc(char),0)
endfunction
Note that you first have to load user32.dll like this:
user32num as byte
user32num = 1 `or another dll number
load dll "user32.dll",user32num
-Xol
DBpro IonRay IDE: Demo 0.1.0.0 available!