acedGetString

acedGetString

Anonymous
Not applicable
862 Views
5 Replies
Message 1 of 6

acedGetString

Anonymous
Not applicable
Is acedGetString the best way to prompt the user for an input value?

Thanks,
Eric
0 Likes
863 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
It depends on what kind of value.
There are other acedGetXXX functions to meet other value types, such as:
acedGetPoint(), acedGetDist(), acedGetInt()...

Fang


"Eric Hatton" ???? news:[email protected]...
> Is acedGetString the best way to prompt the user for an input value?
>
> Thanks,
> Eric
>
>
>
>
0 Likes
Message 3 of 6

Anonymous
Not applicable
It is going to be a 7-10 digit number. I just wasn't sure if acedGet... was
the way to go or if there was another way. Thanks for the assistance.

Eric


"Fang" wrote in message
news:[email protected]...
> It depends on what kind of value.
> There are other acedGetXXX functions to meet other value types, such as:
> acedGetPoint(), acedGetDist(), acedGetInt()...
>
> Fang
>
>
> "Eric Hatton" ????
news:[email protected]...
> > Is acedGetString the best way to prompt the user for an input value?
> >
> > Thanks,
> > Eric
> >
> >
> >
> >
>
>
0 Likes
Message 4 of 6

Anonymous
Not applicable
How about making your own dialog box(MFC or non MFC)?

Joseph

"Eric Hatton" wrote in message
news:[email protected]...
> It is going to be a 7-10 digit number. I just wasn't sure if acedGet...
was
> the way to go or if there was another way. Thanks for the assistance.
>
> Eric
>
>
> "Fang" wrote in message
> news:[email protected]...
> > It depends on what kind of value.
> > There are other acedGetXXX functions to meet other value types, such as:
> > acedGetPoint(), acedGetDist(), acedGetInt()...
> >
> > Fang
> >
> >
> > "Eric Hatton" ????
> news:[email protected]...
> > > Is acedGetString the best way to prompt the user for an input value?
> > >
> > > Thanks,
> > > Eric
> > >
> > >
> > >
> > >
> >
> >
>
>
0 Likes
Message 5 of 6

Anonymous
Not applicable
I thought about that but for what this is going to do it was not worth the
effort to develop the dialog. I just needed the user to enter a number for
processing. Thanks for the suggestion.

Eric


"Joseph Pods" wrote in message
news:[email protected]...
> How about making your own dialog box(MFC or non MFC)?
>
> Joseph
>
> "Eric Hatton" wrote in message
> news:[email protected]...
> > It is going to be a 7-10 digit number. I just wasn't sure if acedGet...
> was
> > the way to go or if there was another way. Thanks for the assistance.
> >
> > Eric
> >
> >
> > "Fang" wrote in message
> > news:[email protected]...
> > > It depends on what kind of value.
> > > There are other acedGetXXX functions to meet other value types, such
as:
> > > acedGetPoint(), acedGetDist(), acedGetInt()...
> > >
> > > Fang
> > >
> > >
> > > "Eric Hatton" ????
> > news:[email protected]...
> > > > Is acedGetString the best way to prompt the user for an input value?
> > > >
> > > > Thanks,
> > > > Eric
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
0 Likes
Message 6 of 6

Anonymous
Not applicable
Eric,
can your program tolerate if user enter NON whole number? I was wondering
if you can use acedGetReal(), because the result is in ads_real, which is
really a double. According to my VisualC++ documentation, Double has range
of "1.7E +/- 308 (15 digits)" Double will be able to hold 7-10 digit
number. If you want whole number, then cast it to int.

Use acedGetString() to catch user input, then call atoi() or atol(). You may
also want to check if user has enter non digit (digit is 0 to 9) character,
otherwise atoi() or atol() will return invalid number.

Joseph

"Eric Hatton" wrote in message
news:[email protected]...
> I thought about that but for what this is going to do it was not worth the
> effort to develop the dialog. I just needed the user to enter a number
for
> processing. Thanks for the suggestion.
>
> Eric
>
>
> "Joseph Pods" wrote in message
> news:[email protected]...
> > How about making your own dialog box(MFC or non MFC)?
> >
> > Joseph
> >
> > "Eric Hatton" wrote in message
> > news:[email protected]...
> > > It is going to be a 7-10 digit number. I just wasn't sure if
acedGet...
> > was
> > > the way to go or if there was another way. Thanks for the assistance.
> > >
> > > Eric
> > >
> > >
> > > "Fang" wrote in message
> > > news:[email protected]...
> > > > It depends on what kind of value.
> > > > There are other acedGetXXX functions to meet other value types, such
> as:
> > > > acedGetPoint(), acedGetDist(), acedGetInt()...
> > > >
> > > > Fang
> > > >
> > > >
> > > > "Eric Hatton" ????
> > > news:[email protected]...
> > > > > Is acedGetString the best way to prompt the user for an input
value?
> > > > >
> > > > > Thanks,
> > > > > Eric
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
0 Likes