Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Nulls ignored by GenHTML
Message
 
 
À
31/03/2008 08:33:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01306877
Message ID:
01306896
Vues:
7
Hi Tore,

I wasn't thinking about optimizing code but rather giving some directions on where and how to fix it.

>
>is there any reason why you don't use NVL()?
>lcFieldValue = nvl(lcFieldValue,'')
>
>>Hi Nick,
>>
>>You have access to the source code for GenHtml and _html.vcx and may adjust it to your liking.
>>The small change below should fix the problem but I didn't test it. It should get you started, though.
>>
>>* _html.vcx, _htmltable class
>>* GenerateListTable method
>>* GenerateDetailTable method
>>...
>>		lcFieldValue=this.GetFieldValue(lcField,this.aFieldList[lnCount,2], ;
>>				this.aFieldList[lnCount,3],this.aFieldList[lnCount,4])
>>
>>		* Commented current code skips null values
>>		*IF ISNULL(lcFieldValue)
>>		*	LOOP
>>		*ENDIF
>>		* Try
>>		IF ISNULL(lcFieldValue)
>>			lcFieldValue = ""
>>		ENDIF
>>...
>>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform