Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How to put multi line results to a memo or any form ?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Flux.
Advanced Cheater
Reputation: 0

Joined: 10 Nov 2016
Posts: 84
Location: Another World - N5X2 106311411+2123518

PostPosted: Wed Mar 25, 2020 4:40 am    Post subject: How to put multi line results to a memo or any form ? Reply with quote

Hello all,
After doing a module search and printing the results -
sometimes more than one result returns printing on a new line,
how to do this in a memo or label, preferably all results on one line or alternatively all reullts on multiple lines.

e.g original code thx to mgr.inz.Player -
Code:
tab = enumModules()
for i=1,#tab do
  if tab[i].Name:lower():match"module name here" then
-- line below works but only shows 1 result in the memo(the last), how to have all reults on one line ?
memo.Lines.Text =(..tab[i].Name)


Any help is appreciated, thx.
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Wed Mar 25, 2020 8:34 am    Post subject: This post has 2 review(s) Reply with quote

change to this:

Code:
memo.Lines.Text=memo.Lines.Text..[[
]]..(..tab[i].Name)

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Flux.
Advanced Cheater
Reputation: 0

Joined: 10 Nov 2016
Posts: 84
Location: Another World - N5X2 106311411+2123518

PostPosted: Wed Mar 25, 2020 9:23 am    Post subject: Reply with quote

Hi Corroder,
Thanks for the reply, finally getting somewhere. +1
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites