Commerce Server General - Ancestor/Parent Categories for display

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > August 2004 > Ancestor/Parent Categories for display





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Ancestor/Parent Categories for display
Ravi Shankar

2004-08-25, 4:19 am

What version are you using ?
IF CS2002 are you using PIA or BCL ?

From you calls it looks like you're using PIA in CS2K2 or
CS2000 in which case the "Type Mismatch" is because the
oCategory.ParentCategories might return a ADO Recordset
object.

If you're using BCL then you'd get a String Array and
since you've assigned it to a string.. hence the type
mismatch.

HTH.

>-----Original Message-----
>Hi
>
>I have the following code that is giving me a error of
>"object required". Can someone please assist.
>
> ****************************************
***************
>* Object required - even though I have oCategory and
>oCatalog as well as sCategoryName populated
> ****************************************
***************
> Set oCategory = mscsGetCategoryObject(oCatalog,
>sCategoryName)
>
>************** Same for this *******************
> Set sCategoryName =
>oCategory.ParentCategories
>
>*********************** This give me a "TYPE MISMATCH"
>*****
> If StrComp(sCategoryName, sCatalogName) =
>0 Then
>
>Can someone help. I know this Forum is not for syntax,
>but I would appreciate any help.
>
>
>.
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com