Topic Options
Rate This Topic
#25053 - 03/16/00 03:21 AM API Question!!!
thomas miskiewicz Offline
Just Signed Up

Registered: 06/12/01
Posts: 4


In the pack.zip file attached to this mail I have attached a small c program
(test2.c)
definition file with a single form and the data for the form.

Could somebody tell me why the program work when I comment out the lines 90, 91,
92
and why the program doesn´t work when the lines are not commented out?

((fl.fieldsList) [4]).fieldId = 110;
((fl.fieldsList) [4]).columnWidth = 20;
sprintf(((fl.fieldsList) [0]).separator, " ");

I have really a big problem with it, bacause I can´t retrieve data from one
radio button
and I can retrieve data from another (lines 87, 88, 89) in test.c


Regards
Tom



(See attached file: pack.zip)


Top
#25054 - 03/16/00 03:52 AM Re: API Question!!! [Re: jonathan cantu]
Anonymous
Unregistered


>
> Could somebody tell me why the program work when I comment out
> the lines 90, 91,
> 92
> and why the program doesn´t work when the lines are not commented out?


Could it be becaue fieldid 110 is a reserved field?

110 -> Full Text License Type

Not sure if you can use this on a non User form.

--
Jarl Grøneng
jgroneng@online.no


Unsubscribe to: Text is: unsubscribe arslist


Top
#25055 - 03/16/00 11:20 AM Re: API Question!!! [Re: jonathan cantu]
greg gibson Offline
Stealth Member

Registered: 06/12/01
Posts: 128
You are always specifying index = 0 (l.fieldsList) [0]).separator). Also, you might
consider using fewer "(" and remove the sprintf. I have rewritten the code below. Notice the "separator"
code is using ' and not ".

((fl.fieldsList) [0]).fieldId = 8;
((fl.fieldsList) [0]).columnWidth = 20;
sprintf(((fl.fieldsList) [0]).separator, " ");
((fl.fieldsList) [1]).fieldId = 536870913;
((fl.fieldsList) [1]).columnWidth = 20;
>>>>>>>>>>>>>>>>>>>>>>>> sprintf(((fl.fieldsList) [0]).separator, " ");
((fl.fieldsList) [2]).fieldId = 3;
((fl.fieldsList) [2]).columnWidth = 20;
>>>>>>>>>>>>>>>>> sprintf(((fl.fieldsList) [0]).separator, " ");
((fl.fieldsList) [3]).fieldId = 7;
((fl.fieldsList) [3]).columnWidth = 20;
>>>>>>>>>>>>>>> sprintf(((fl.fieldsList) [0]).separator, " ");
((fl.fieldsList) [4]).fieldId = 110;
((fl.fieldsList) [4]).columnWidth = 20;
>>>>>>>>>>>>>> sprintf(((fl.fieldsList) [0]).separator, " ");

New code:
fl.fieldsList[0].fieldId = 8;
fl.fieldsList[0].columnWidth = 20;
fl.fieldsList[0].separator=' ';

fl.fieldsList[1].fieldId = 536870913;
fl.fieldsList[1].columnWidth = 20;
fl.fieldsList[1].separator = ' ';

fl.fieldsList[2].fieldId = 3;
fl.fieldsList[2].columnWidth = 20;
fl.fieldsList[2].separator= ' ';

fl.fieldsList[3]).fieldId = 7;
fl.fieldsList[3].columnWidth = 20;
fl.fieldsList[3]).separator = ' ';

fl.fieldsList[4].fieldId = 110;
fl.fieldsList[4].columnWidth = 20;
fl.fieldsList[4].separator = ' ';

Good luck, we all need it.


Unsubscribe to: Text is: unsubscribe arslist


Top


Moderator:  Matt Reinfeldt