Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / BlueGUI Simple Help!

Author
Message
RegenProZ
18
Years of Service
User Offline
Joined: 20th Aug 2005
Location:
Posted: 24th Aug 2005 22:33
Heya Foks!

I got BlueGUI (No Never! lol), and I want to be able to do this.

I have a simple username and password box with a button.

When the user clicks on the button, I want to grap the information that has been entered from the username and password box, and saved into a file.

I know how to create a file but I don't know how to grap the current information in the box.

I tried the getgadgettext,
grapinfo=getgadgettext(UsernameBox)

But got a cannot perform interget cast on type @$S1

Any tricks of the trade to get around this?

Many Thanks In Advance.


---------
Cheers
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 25th Aug 2005 00:56
Quote: "But got a cannot perform interget cast on type @$S1
"


The 'grabinfo' variable needs to be a string. Either put a dollar sign at the end of the variable name, eg: grabinfo$, or define in thus:

local grabinfo as string


BlueGUI Windows Plugin
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 25th Aug 2005 01:16
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:

Note that you first have to load user32.dll like this:


-Xol


DBpro IonRay IDE: Demo 0.1.0.0 available!
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 25th Aug 2005 03:56
Hi Xolatron,

He is trying to get a username and password, not a number out of the edit box.


BlueGUI Windows Plugin
RegenProZ
18
Years of Service
User Offline
Joined: 20th Aug 2005
Location:
Posted: 25th Aug 2005 14:27
Hey guys, about 10 minutes after submitting that question I manage to find out how to do it(Well I knew how to in the first place but my code was somewhat wrong)

Anyway, Thanks for your support, I'm glad to be using such a poweful program!


---------
Cheers
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 26th Aug 2005 01:39
Quote: "He is trying to get a username and password, not a number out of the edit box."

I just thought that his password might be just numerals allowed if he was trying to store it into an integer. The string method is definitely better and more secure, though

Quote: "I'm glad to be using such a poweful program!"

Yep, BluegGUI is great. I can't believe I even thought about not buying now that I use it so much, thanks Rob K .

-Xol


DBpro IonRay IDE: Demo 0.1.0.0 available!

Login to post a reply

Server time is: 2024-05-06 02:18:51
Your offset time is: 2024-05-06 02:18:51