tableedControl
Can anyone tell me how to use Vip 7's tableedControl with customControl on Vip 7.5 or 8 in pfc/gui/controls, or no . In this case there is perhaps another solution more easy for output database with integer, string and real numbers? Thanks
-
- VIP Member
- Posts: 452
- Joined: 5 Nov 2000 0:01
-
- VIP Member
- Posts: 452
- Joined: 5 Nov 2000 0:01
-
- VIP Member
- Posts: 452
- Joined: 5 Nov 2000 0:01
-
- VIP Member
- Posts: 452
- Joined: 5 Nov 2000 0:01
See here for HTML table structure: https://www.w3schools.com/html/html_tables.asp
The table structure might look intimidating at first, but remember that for your application you (probably) won't need to do the fancy (but helpful) indenting. With a little thought you can figure out how to write a table header (<th> ... </th> ) with one line of code whose predicate declaration looks something like this: The same technique will work for the table data (<td> ...<\td> ) rows.
Excel will happily open CSV (character separated values) files that you write from your application. The separators most commonly used are ',' and the tab character ( '\t' ). I prefer using tab because then fields can contain embedded commas. Some fields may need to be quoted with '"'. See this: https://support.office.com/en-us/articl ... 9e391393ba
Try mocking up a small data table in Excel that looks like the data you want to display, then SaveAs CSV file and also SaveAs TXT (tab-separated file). You can open these in Notepad or other editor to see how to format the data you write to disk.
Remember, you can launch Excel from your program, too.
The table structure might look intimidating at first, but remember that for your application you (probably) won't need to do the fancy (but helpful) indenting. With a little thought you can figure out how to write a table header (<th> ... </th> ) with one line of code whose predicate declaration looks something like this:
Code: Select all
emitHeaderList( outputStream YourFile, string_list Headers )
Excel will happily open CSV (character separated values) files that you write from your application. The separators most commonly used are ',' and the tab character ( '\t' ). I prefer using tab because then fields can contain embedded commas. Some fields may need to be quoted with '"'. See this: https://support.office.com/en-us/articl ... 9e391393ba
Try mocking up a small data table in Excel that looks like the data you want to display, then SaveAs CSV file and also SaveAs TXT (tab-separated file). You can open these in Notepad or other editor to see how to format the data you write to disk.
Remember, you can launch Excel from your program, too.
- Tonton Luc
- VIP Member
- Posts: 204
- Joined: 16 Oct 2001 23:01
Hi,
In tableedControl.i :
In tableedControl.i :
Code: Select all
tableedit_type = te_integer; % INTEGER column type
te_real; % REAL column type
te_long; % INTEGER column type
te_string; % STRING column type (default: STRING column type)
te_picture. % picture column type