V4RB 1.10 Platform inconsistency
Ruslan Zasukhin
sunshine at public.kherson.ua
Tue Mar 9 19:05:37 CST 2004
On 3/9/04 6:43 PM, "Fred.Stephenson"
<Fred.Stephenson at communication-unltd.com> wrote:
Hi Fred,
> I've just come across a problem where I wanted to update a database
> (add new fields) so I did the following after checking the schema
> version
>
> bo=mdatabase.BaseObject("customertable")
>
> vs=bo.CreateStringField("Referral",30,"ascii","")
> vb=bo.CreateBooleanField("Mailing","")
> vs.Indexed=true
>
> now this works fine on the Mac and adds the fields however my app
> gives a nilexception when populating panes on the PC. When I check
> with viSql it displays the newly added fields as method fields.
So you mean that if write
vs=bo.CreateStringField("Referral",30,"ascii")
It works. Yes?
I see where problem can be.
Although better not send empty string into method text.
REALbasic for "" produce on C++ level NULL pointer.
Other languages will consider such logic as METHOD.
--
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://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------
More information about the Valentina
mailing list