Function acedInitGet()

Function acedInitGet()

Anonymous
Not applicable
1,100 Views
2 Replies
Message 1 of 3

Function acedInitGet()

Anonymous
Not applicable
Hi,
excuse for my english, but I' m italian.
I have this part of my source code:

acedInitGet(RSG_OTHER, "s n"); // The next user-input function should
accept 's' or 'n', instead accept every character. Why ?
ris = acedGetKword("\nATTENZIONE: tutti i numeri d'elemento verranno
cancellati,\ncontinuare (s\\n) : ", &scelta);

Why Autocad accept character differrent from 's' and 'n' too ?

Thank you for all.

Simone
0 Likes
1,101 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Simone P.

Because you have used "RSG_OTHER".
This returns "input string if unknown"
You should use RSG_NONULL // Disallow null input
or NULL,
i.e. acedInitGet(RSG_NONULL, "s n");

Regards Gary
www.drcauto.com

"Simone P." wrote in message
news:[email protected]...
> Hi,
> excuse for my english, but I' m italian.
> I have this part of my source code:
>
> acedInitGet(RSG_OTHER, "s n"); // The next user-input function should
> accept 's' or 'n', instead accept every character. Why ?
> ris = acedGetKword("\nATTENZIONE: tutti i numeri d'elemento verranno
> cancellati,\ncontinuare (s\\n) : ", &scelta);
>
> Why Autocad accept character differrent from 's' and 'n' too ?
>
> Thank you for all.
>
> Simone
>
>
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thank you for answer.
Now it works very well

Simone

"Gary D'Arcy" ha scritto nel messaggio
news:[email protected]...
> Simone P.
>
> Because you have used "RSG_OTHER".
> This returns "input string if unknown"
> You should use RSG_NONULL // Disallow null input
> or NULL,
> i.e. acedInitGet(RSG_NONULL, "s n");
>
> Regards Gary
> www.drcauto.com
>
> "Simone P." wrote in message
> news:[email protected]...
> > Hi,
> > excuse for my english, but I' m italian.
> > I have this part of my source code:
> >
> > acedInitGet(RSG_OTHER, "s n"); // The next user-input function
should
> > accept 's' or 'n', instead accept every character. Why ?
> > ris = acedGetKword("\nATTENZIONE: tutti i numeri d'elemento verranno
> > cancellati,\ncontinuare (s\\n) : ", &scelta);
> >
> > Why Autocad accept character differrent from 's' and 'n' too ?
> >
> > Thank you for all.
> >
> > Simone
> >
> >
>
>
0 Likes