| To: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
|---|---|
| Subject: | Graphics.Stringwidth to integer |
| From: | Tim Jones <tjmac@tolisgroup.com> |
| Date: | Mon, 30 Jun 2008 20:39:22 -0700 |
| Authentication-results: | mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com |
| Delivered-to: | listarchive@realsoftware.com |
| Reply-to: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
| Sender: | realbasic-nug-bounces@lists.realsoftware.com |
Hi Folks,If a function returns a Double, but need I an integer, shouldn't I be able to simply cast the result of a call that returns a double to an integer? Me.Width = Integer(Graphics.Stringwidth(thestring))The compiler informs me that it "Expected Int32, but got Double". Isn't that supposed to be resolved by the cast to Integer? A slightly confused, Tim _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: ftp socket uploading problem, Sam Rowlands |
|---|---|
| Next by Date: | Re: Graphics.Stringwidth to integer, Joe Huber |
| Previous by Thread: | MouseDrag not firing?, Markus Winter |
| Next by Thread: | Re: Graphics.Stringwidth to integer, Joe Huber |
| Indexes: | [Date] [Thread] [Top] [All Lists] |