realbasic-nug
[Top] [All Lists]

Re: 2 questions

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: 2 questions
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Wed, 30 Jul 2003 10:16:56 -0700
At 7:13 PM +0200 7/30/03, Miklos L. Ranky wrote:

1, How can I make a message box that has more than one button? Thinking here like "OK" "Cancel" or "Abort" "Retry" "Cancel"

Use the "New Window" command (under the File menu), then drag several PushButtons from the controls palette onto it. Give them appropriate captions and positions as needed. Use ShowModal to present the window you've created.

2, I'm not sure if this is a bug, but:
I have a mySQL db and I send data to it in UTF-8. It works fine. However when I retrieve the data from the db to a listbox, It diplays my UTF-8 text in ASCII. What is the solution?

It's not a bug. RB gets a bunch of bytes back from MySQL, and doesn't know how to interpret these as text. You need to use DefineEncoding on the returned strings to let RB know that these bytes should be interpreted as UTF-8.

Cheers,
- Joe

--
,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.realsoftware.com        |
`------------------------------------------------------------------'

---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
.


<Prev in Thread] Current Thread [Next in Thread>