Home » U++ Library support » U++ Core » conversion between data of a cell of the arrayctrl to int
Re: conversion between data of a cell of the arrayctrl to int [message #2572 is a reply to message #2570] |
Tue, 18 April 2006 01:13   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
forlano wrote on Mon, 17 April 2006 18:36 |
luzr wrote on Tue, 18 April 2006 00:19 |
First of all, best is simply to store "int" into ArrayCtrl, then you can simply write
editRatNat <<= ~arr.Get(int_row, "RatNat");
|
I agree! but, forgive the silly question, how to store int in a particular column? (I want to eliminate that #include)
I've learned 0how to set Ctrls, for example:
arr.AddColumn("Avail", "Avail", 4).Ctrls<Option>();
but what about stupid int?
Luigi
|
In fact, you can always store anything that is Value convertible to ArrayCtrl.
arr.AddColumn("1");
arr.AddColumn("2");
arr.Add(1, "2");
arr.Add("3", 4);
now (if arr was empty before first Add)
arr.Get(0, 0) returns int (well, in fact, "Number" which covers int too)
arr.Get(0, 1) returns String
arr.Get(1, 0) returns String
arr.Get(1, 1) returns "Number" (int)
(by "returns" undestand "returns Value that contains/can be converted to")
Mirek
[Updated on: Tue, 18 April 2006 01:15] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Wed Sep 03 19:59:16 CEST 2025
Total time taken to generate the page: 0.04822 seconds
|