Quantcast
Channel: GSAK Forum
Viewing all articles
Browse latest Browse all 76207

Copy Database Row Number to UserData Column by Lt.Ranger.Bob - 2013-07-26

$
0
0
QUOTE (TheWinterTrio @ July 25, 2013 10:54 pm)
Is this what you are looking for, just the row number in the current grid display?  (I have not ran or tested this, just typed it right here...)
CODE
$X = 1
Goto Positon=Top

While not($_EOL)
 If $X < 10
   $data = "0" + NumtoStr($X) + "."
 Else
   $data = NumtoStr($X) + "."  
 EndIf
 $d_Userdata = $data
 $X = $X + 1
 Goto Position=Next
EndWhile


If you're looking to sort by Userdata, then you'll need to make sure you have less than 100 entries or you'll have to pad everything under 100 with an extra "0"...

-TWT

Yes I am just trying to copy what is displayed in the Row Column into UserData column with it being padded with a zero and having a period at the end. I copied your code and made it into a macro so I could test it and I got this error:

user posted image

Viewing all articles
Browse latest Browse all 76207

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>