Commit 79e08904 authored by claes's avatar claes

ProString added

parent bcaa379f
/** /**
* Proview $Id: co_cdh.c,v 1.13 2005-09-01 14:57:52 claes Exp $ * Proview $Id: co_cdh.c,v 1.14 2005-09-20 13:22:40 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -549,8 +549,17 @@ cdh_AttrValueToString ( ...@@ -549,8 +549,17 @@ cdh_AttrValueToString (
} }
break; break;
case pwr_eType_String: case pwr_eType_String:
case pwr_eType_Text:
sprintf(sval,"%s", (char *) Value); sprintf(sval,"%s", (char *) Value);
break; break;
case pwr_eType_ProString: {
int len = strlen( (char *)Value);
int i;
strcpy( sval, "");
for ( i = 0; i < len; i++)
strcat( sval, "*");
break;
}
default: default:
sts = CDH__INVTYPE; sts = CDH__INVTYPE;
break; break;
...@@ -727,6 +736,8 @@ cdh_StringToAttrValue ( ...@@ -727,6 +736,8 @@ cdh_StringToAttrValue (
break; break;
case pwr_eType_String: case pwr_eType_String:
case pwr_eType_Text:
case pwr_eType_ProString:
strcpy(Value, String); strcpy(Value, String);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment