[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 170
  • Last Modified:

Hi,inpras notice here!!

About
for(i=1;i<..;i++){
CString KName;
KName.Format("m_K%d",i);
COleVariant var = KName;
     
SetFieldValue(var,"MyValue");

}
if the value under KName is a float,
also use SetFieldValue(var,"MyValue")?
0
SonicYouth
Asked:
SonicYouth
  • 2
1 Solution
 
SonicYouthAuthor Commented:
Edited text of question.
0
 
SonicYouthAuthor Commented:
Edited text of question.
0
 
inprasCommented:
Hi
Yes U can do
COleVariant is basically has the all the properties of VARIANT structure so U can pass a float too

Hope this helps

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now