[V4RB] Newbie Problem - Desperate for help !
Brian Farrell
brianfarrell at btconnect.com
Tue Mar 4 09:33:12 CST 2003
Ruslan,
I do not understand what is wrong with the code shown. I am using a cursor
for each table but only to manage selects. I have used the RB Tutorial as a
template for what I have done and for all other tables it works fine.
In the RB debugger it looks correctly configured. If you access the db
object it shows all tables as objects. If I click on the Table object to
view
it, all is fine. But if I click on the field object it crashes. It does not
do this with any other table. Is it possible someone could take 5 minutes to
look at the code?
What is worrying is I am not creating the tables in code. I used VAPP
to create the schema. The crash causes the table to be dropped from the
schema.
Very worrying. Luckily it's only a 2 field table. I have tried dumping xml
and
loading xml to create a fresh schema but to no effect.
Brian
----------------------------------------------------
Brian Farrell Consulting
Tel/Fax: +44 (0)1908 271918, Mob: +44 (0)7768 927403
<mailto: brian.farrell at talk21.com>
> -----Original Message-----
> From: valentina-bounces at lists.macserve.net
> [mailto:valentina-bounces at lists.macserve.net]On Behalf Of Ruslan
> Zasukhin
> Sent: Monday, March 03, 2003 1:00 PM
> To: valentina at lists.macserve.net
> Subject: Re: [V4RB] Newbie Problem - Desperate for help !
>
>
> on 3/3/03 2:21 PM, Brian Farrell at brianfarrell at btconnect.com wrote:
>
> > Having just bought Valentina and whacked together some code
> > to manage 5 small tables, I am consistently getting a crash
> > when I assign a value to a field of one particular table.
> > The table has 2 fields, a ULong and a VarChar32 (Indexed).
> > It doesn't matter which field I try it just crashes instantly with no
> > warning.
> > I have spent 18 hours looking at this one seemingly simple problem
> > and have got not one line of code further with it.
>
> Check that you have asign name for this BaseObject in ctor !
>
> After create db, close it,
> And open db in VAPP. Check if all tables and fields was correctly created.
>
> > The RB debug window shows everything as looking alright.
> > The table has no records in it, a cursor is defined.
> >
> > I am using OSX 10.2.4, Valentina 1.9.7, RB4.5.2
> > My code does
> >
> > SetBlank
> > mLastID.Value = 1 ' This is the ULong field
> > mTableName.Value = "User"
> >
> > The crash occurs on the first assignment.
> > The table is for handling sequence numbers for all the other tables.
>
> Hmm, so you work with cursor ?
>
> Then why you assign directly into BaseObject fields ?
> IF you have cursor (and this is recommended) then you need assign
> fields as
>
> curs.ULongfield(1).value = 1
>
>
> > I could really do with an assist here as I am not the most
> > experienced RB developer (having come from a 4D background)8-()
> >
> > Also Can anyone tell me how it is possible to DROP a table
> > by merely attempting to set a field value?
> > If I try and access any field to either set or get the value
> > I get a crash and when I view the schema using Valentina the table
> > has been dropped?!?
>
> --
> Best regards,
> Ruslan Zasukhin [ I feel the need...the need for speed ]
> -------------------------------------------------------------
> e-mail: ruslan at paradigmasoft.com
> web: http://www.paradigmasoft.com
>
> To subscribe to the Valentina mail list go to:
> http://listserv.macserve.net/mailman/listinfo/valentina
> -------------------------------------------------------------
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
>
More information about the Valentina
mailing list