home *** CD-ROM | disk | FTP | other *** search
- Path: mn5.swip.net!news
- From: roland.bengtsson@mbox3.swipnet.se (Roland Bengtsson)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Accessing NUMBER type in GADTOOLS
- Date: 14 Feb 1996 21:00:50 GMT
- Organization: -
- Message-ID: <775.6618T1277T1963@mbox3.swipnet.se>
- References: <4f6ma8$rd8@celebrian.otago.ac.nz>
- NNTP-Posting-Host: dialup103-7-11.swipnet.se
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
-
- >:Could anyone tell me how to access the integer information of a NUMBER
- >:type GadTools gadget?? I know I should have the RKM's, but I'm poor :)
-
- #define GetNumber(g) (((struct StringInfo * )g->SpecialInfo )->LongInt)
-
- g is a pointer to the gadget.
-
- Usage:
-
- number = GetNumber(mygadget);
-
- --
- \|/
- Thor 2.22 #1497 @ @
- +--------------------------oOO-(_)-OOo----------+
- | _ // | |
- | \X/ |Falkenberg, Westcoast of Sweden |
- |A3000/10MB | |
- |280HD/28.8 |Please write where YOU live! |
- |GVP Spectrum| |
- |AFS Pro |Amiga-Programmer in C |
- +------------+----------------------------------+
-
- --
-
-