Search found 39 matches
- Tue Sep 22, 2015 2:22 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Stack resizable
- Replies: 1
- Views: 599
Stack resizable
Hi how would you solve this? if the stack width is less than 1024 I want to basically stop resizing. on resizeStack pNewWidth, pNewHeight if pNewWidth < 1024 or pNewHeight < 740 then -- will set always the width of stack to 1024 but then when width of stack is set to 1024 stack is shifting to left -...
- Fri Sep 11, 2015 2:07 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Populating grid from 2 queries[Solved]
- Replies: 4
- Views: 1082
Re: Populating grid from 2 queries[Solved]
This is also possible, but your script only use arrays and unless noted differently I always presume the "worst" case, which is a datagrid of type FORMI was expecting that behavior but I was hoping there will be something easy like grab dgText and put it after dgText

- Fri Sep 11, 2015 12:10 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Populating grid from 2 queries[Solved]
- Replies: 4
- Views: 1082
Re: Populating grid from 2 queries
Ok not sure if that is the only and proper way but I had to create 3rd array to populate grid with it.
- Fri Sep 11, 2015 10:32 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Populating grid from 2 queries[Solved]
- Replies: 4
- Views: 1082
Populating grid from 2 queries[Solved]
Hi guys, I have a grid with ID, Name columns. Now in order to populate this grid I have to do 2 queries from DB. So I select id and name from 1st table and set the dgData of group "TestGrid" to array1 .... This works perfectly and data from 1st table will be in grid. Next step is to populate this gr...
- Wed Sep 02, 2015 11:06 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: on closeStack [Solved]
- Replies: 5
- Views: 1197
Re: on closeStack [Solved]
Just checking with me colleague and he also suggested another solution to have empty
on substacks
Code: Select all
on openStack
end openStack
on closeStack
end closeStack
- Wed Sep 02, 2015 10:53 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: on closeStack [Solved]
- Replies: 5
- Views: 1197
Re: on closeStack
OK got it
Code: Select all
on closeStack
put the short name of this stack into tStackName
if tStackName is "TestingStack" then
answer "mainstack has been closed"
closeDatabase
else
answer "substack has been closed"
end if
end closeStack
- Wed Sep 02, 2015 10:44 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: on closeStack [Solved]
- Replies: 5
- Views: 1197
Re: on closeStack
Hi antrax13, if "only the particular name of the stack" is closed then closeconnection else do not close connection end if Yes you're right, you can check the name of stack like a condition You can also use pass closestack if you want do something on closestack for the current stack and pass closes...
- Wed Sep 02, 2015 10:04 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: on closeStack [Solved]
- Replies: 5
- Views: 1197
on closeStack [Solved]
Hi all, its me again with funny issues :lol: I have the main stack where I put the connection/disconnection on openStack/closeStack. on openStack connectDB end openStack then I want to close connection when the stack is closed so I have on closeStack closeDatabaseConnection end closeStack Now the is...
- Mon Aug 31, 2015 4:51 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: String/Substring variable length [Solved]
- Replies: 16
- Views: 4115
Re: String/Substring variable length
Thanks all.
Special thank you for zaxos
Special thank you for zaxos

- Mon Aug 31, 2015 3:28 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: String/Substring variable length [Solved]
- Replies: 16
- Views: 4115
Re: String/Substring variable length
Hi antrax13, no special function for this! :D Use a repaet loop like this: ... ## repeat for each.. is insanely fast, but read-only, so we fill a new variable here: repeat for each line tLine in YourListHere ## Only use first to last - 1 character, ## luckily we can count from "backwards" in Liveco...
- Mon Aug 31, 2015 2:48 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: String/Substring variable length [Solved]
- Replies: 16
- Views: 4115
String/Substring variable length [Solved]
Hi all, I am not sure if this is the proper way of doing it but what I need is following. I have values like: ABC1 ABCD1 ABCDE1 and what I need is to get: ABC ABCD ABCDE Is there any function that will remove last character from string or do I have to find out that length of string and then select c...
- Wed Aug 26, 2015 2:15 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Creating/Populating Associative Array[Solved]
- Replies: 2
- Views: 891
Re: Creating/Populating Associative Array
OK got what I need here is the code that was needed
Thanks to myself 

Code: Select all
put 1 into counter
repeat for each element e in AvailableArray
put e["id"] into testArray[counter]["id"]
put e["description"] into testArray[counter]["description"]
add 1 to counter
end repeat

- Wed Aug 26, 2015 1:58 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Creating/Populating Associative Array[Solved]
- Replies: 2
- Views: 891
Creating/Populating Associative Array[Solved]
Hi All, I ve been trying for a while with no success to create associative array When I am looping via data grid I am getting these values => id and description for each loop I will get this information for every single loop 9 ----------- Description Test 1 ----------- Description Test Test 3 ------...
- Thu Jul 30, 2015 3:07 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Create it with LiveCode StocksApp missing part video 1 or 2
- Replies: 9
- Views: 1609
Re: Create it with LiveCode StocksApp missing part video 1 o
Hi Antrax13, Upon further investigation it does look like the second UI video is missing. I will put in a request to have this updated on the materials page. In the mean time, you can directly access the video from the following links- http://downloads.livecode.com/createitwith/materials/week8/Stoc...
- Thu Jul 30, 2015 2:28 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Create it with LiveCode StocksApp missing part video 1 or 2
- Replies: 9
- Views: 1609
Re: Create it with LiveCode StocksApp missing part video 1 o
Our company has 2 indy licenses with price lock expired in 2017 it was purchased by our business it controller. When I log in I can see all 20 apps including quiz and access all lessons/videos. Lesson 8 - Stock App is not properly done and one video part of building UI is probably missing. You can e...