SV: ObjSubType

Daniel Sananes danielsananes at hotmail.com
Mon Dec 8 11:22:41 EST 2014


Thanks Michael.
Kelly suggested the same: using con()
Works of course.

Daniel

-----Ursprungligt meddelande-----
Från: omnisdev-en-bounces at lists.omnis-dev.com
[mailto:omnisdev-en-bounces at lists.omnis-dev.com] För Michael Monschau
Skickat: den 8 december 2014 16:03
Till: OmnisDev List - English
Ämne: Re: ObjSubType

Hi Daniel,

Not sure if that would work in classic but constants can return both numeric
or text values. Omnis sometimes has a hard time figuring out what is
expected. In the past I have used the con() with some success, i.e.
con($ref.$objsubtype).

Regards,
Michael

Michael Monschau (Director)
Brainy Data Limited

Reply To: michael at brainydata.co.uk
Phone: +44 (0)870 474 0708
Web: www.brainydata.co.uk the home of Omnis Components and Developer
Services






> On 8 Dec 2014, at 14:06, Daniel Sananes <danielsananes at hotmail.com> wrote:
> 
> Hi all,
> 
> 
> 
> Just a small question of how to get the name of the objsubtype.
> 
> Am building a list of info from fielformats with $makelist:
> 
> Calculate LIST as
> $formats.FILENAME.$objs.$makelist($ref.$name,$ref.$objtype,$ref.$objsu
> btype,
> $ref.$objsublen)
> 
> Objsubtype gives 0 for character-field, 32 for numeric and 1000 for a 
> datefield I have (etc).
> 
> I would like to see the constansts: kSimpleChar, kDate200, kShortInt etc.
> 
> 
> 
> How do I do that?
> 
> 
> 
> Regards
> 
> Daniel
> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com

_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5577 / Virus Database: 4235/8699 - Release Date: 12/08/14




More information about the omnisdev-en mailing list