Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!fas-news.harvard.edu!newspump.wustl.edu!news.ecn.bgu.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!news.sprintlink.net!in1.uu.net!ncrgw2.ncr.com!ncrhub2!attatl!news
From: Chan <chan@rpsadf.AtlantaGA.ATTGIS.COM>
Subject: Simple problems I face in VW
Sender: news@attatl.AtlantaGA.NCR.COM (nntp network news service)
Message-ID: <DFALz0.1K2@attatl.AtlantaGA.NCR.COM>
Date: Fri, 22 Sep 1995 05:59:24 GMT
To: comp.lang.smalltalk
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Nntp-Posting-Host: 153.76.250.74
Mime-Version: 1.0
X-Mailer: Mozilla 1.1N (Windows; I; 32bit)
Organization: Infosys@ADF
Lines: 22

Hi,

I have some very simple problems in VisualWorks while programming 
without a canvas. I would be grateful to anybody who can help me out.

1) Without using a canvas how do I take a number is input from the user.
If I use DialogView it returns a string. How do I convert this string to 
a number?

2) When I use graphicsContext, I have problems.
The code I wrote in Workspace was

|gc|
gc := TempWindow graphicsContext.
gc displayRectangle: (0 @ 0 extent: 10 @ 10) at: 0 @ 0.

When I execute this code, I have problems.

My Thanks in advance to my Saviour
Chan


