[C SDK] Reading values from cursor
Olaf Schmidtmann
os at brainbits.net
Tue Nov 4 18:07:19 CST 2003
Hi Ruslan,
someone hinted me that getting string values has something to do with these
string buffers. I will try that and report later or tomorrow. I still have
the error 363 question.
bye
Olaf
--
*** http://www.brainbits.net/ ***
> -----Original Message-----
> From: Olaf Schmidtmann [mailto:os at brainbits.net]
> Sent: Tuesday, November 04, 2003 4:08 PM
> To: 'Valentina Developers'
> Subject: [C SDK] Reading values from cursor
>
>
> Hi Ruslan,
>
> my link between Valentina and Flash seems to work now:
> I can create cursors by sql selects, get references, field
> counts, record counts... But when it comes to getting field
> types, names and values it still does not work as it should.
> It seems that I get integers for these and not string for example :-(
>
> Something like this:
>
> [
> {
> fRef: 44076136
> fName: 44201312
> fType: 15
> fValue: 20024512
> }
> {
> fRef: 44063884
> fName: 44201312
> fType: 10
> fValue: 44199248
> }
> ...
>
> I create a cursor and do something like this to get these values:
>
> // fRef is my field reference
> fName = Field_GetName(fRef)
> fType = Field_GetType(fRef)
> fValue = Field_GetString(fRef) // Should work for almost
> everything, right?
>
> Do you have any idea?
> DebugView does not report something special - everything
> seems to work. Of course it could be that my interface to
> access the DLL fails but they say it works with boolean,
> integer, string.
>
>
> When I try to create another cursor and overwrite the old
> reference I get error 363. What does this mean? Do I have to
> destroy the cursor before (set it null)? In Director I could
> simply overwrite the old variable which maybe is a little dirty.
>
>
> Thank you and bye,
> Olaf
>
> --
> *** http://www.brainbits.net/ ***
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/val> entina
>
More information about the Valentina
mailing list