Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 780

Getting Started with LiveCode - Complete Beginners • Re: How to align the display records in the polygrid?

$
0
0
Hi lemodizon,

make a stack with a PolyGrid and a button

set the script of the button to

CODE:

on mouseUp   put the colorNames into tCNames   repeat with i = 1 to 20      repeat with j = 1 to 5         put any line of tCNames & tab after tCollect      end repeat      delete char -1 of tCollect      put cr after tCollect   end repeat   delete char -1 of tCollect   set the pgText of widget 1 to tCollectend mouseUp
This goes to show how to populate a PolyGrid using pgText.
It populates the body of the Polygrid.

Make sure your result from the database query is tab delimited.

Kind regards
Bernd

Edited for an error I made thinking that the first line of pgText is the columnNames; it is not.

Statistics: Posted by bn — Tue May 28, 2024 5:24 pm



Viewing all articles
Browse latest Browse all 780

Trending Articles