Search found 48 matches

by oliverk
Mon Apr 19, 2010 3:55 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Revolution on GoDaddy
Replies: 3
Views: 3022

Re: Revolution on GoDaddy

Hi David, I just had a quick glance at your code sample and I think you're loading the database stuff not quite right. Try doing something like this (not tested): #!/home/content/g/o/o/goodtimes352/html/cgi/standalone -ui on startup loadDatabaseDrivers -- Proceed with database related stuff... end s...
by oliverk
Mon Mar 08, 2010 2:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Array key names
Replies: 2
Views: 2269

Re: Array key names

Hi Pete, I don't think there is a way to do this in a single line of code. I would do something like this: command arrayKeyRename @xArray, pKeyName, pNewKeyName local tKeyValue put xArray[pKeyName] into tKeyValue delete variable xArray[pKeyName] put tKeyValue into xArray[pNewKeyName] end arrayKeyRen...
by oliverk
Thu Feb 25, 2010 10:54 am
Forum: Talking LiveCode
Topic: Problems compiling app with RunRev 4
Replies: 20
Views: 11221

Re: Problems compiling app with RunRev 4

Hi, I think this issue is related to a certain preference setting. It appears to be fixed in the development builds of the next version of Revolution which are available to our enterprise customers. However if you are using 4.0, I think the problem can be worked around by changing the preference "If...
by oliverk
Fri Feb 12, 2010 6:38 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Find and Replace
Replies: 1
Views: 1830

Re: Find and Replace

Hi Larry, We decided to disable find and replace on scripts which are not open in the script editor because it cannot be undone and might cause big damage to people's projects if something went wrong. However you should be able to make this work using the main IDE menu (Edit -> Find and Replace), wh...
by oliverk
Wed Feb 10, 2010 6:38 pm
Forum: Talking LiveCode
Topic: Launch URL from Web-based standalone
Replies: 2
Views: 2828

Re: Launch URL from Web-based standalone

Hi Ron, I've just had a quick test of this, and it does seem to work ok. However one thing I noticed is that the "Process" security category is required in order to launch urls. If you choose "Use These Settings" in the web pane of the standalone settings for your stack, and ensure that "Process" is...
by oliverk
Thu Feb 04, 2010 11:59 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: On-Rev / iRev: Maximum Script Execution Time
Replies: 4
Views: 5641

Re: On-Rev / iRev: Maximum Script Execution Time

Hi Andrew, iRev is set to allow 30 seconds execution time and 64mb memory. At the moment this can't be configured. The execution is measured using CPU time, so in real-time its likely to be quite a bit longer than 30 seconds, depending on how CPU-intensive your code is. I think the default apache ti...
by oliverk
Mon Jan 25, 2010 6:24 pm
Forum: Talking LiveCode
Topic: the fontSizes not working well on Win32
Replies: 2
Views: 2296

Re: the fontSizes not working well on Win32

Hi Jeff, I've never actually used the fontSizes function in an application before, but a quick look in the docs for the function at: http://docs.runrev.com/Function/fontSizes suggests that a return value of 0 means the font will work at any size you choose. What are you using the function for? Perha...
by oliverk
Wed Dec 23, 2009 3:46 pm
Forum: Databases
Topic: TEXT fields and records count
Replies: 3
Views: 3929

Re: TEXT fields and records count

Hi, There are two ways to do this, either you encode the data so that it is all a single line, and decode it again in revTalk, or you can use a database cursor instead of using revDataFromQuery. The cursor method is definitely the way I would go here. Something like this for example: # Query the dat...
by oliverk
Wed Dec 23, 2009 3:21 pm
Forum: Talking LiveCode
Topic: Speed up standalone builder process
Replies: 5
Views: 3737

Re: Speed up standalone builder process

Hi Paul, This issue has come up a few times before. The delay is caused by the standalone builder removing "development properties" from your objects. These are custom properties set by the IDE to allow it to remember various things about your stack. They are not needed in the standalone application...
by oliverk
Wed Dec 23, 2009 3:08 pm
Forum: Talking LiveCode
Topic: datagrid with scrolling text field, linefeeds
Replies: 3
Views: 2924

Re: datagrid with scrolling text field, linefeeds

Hi, I think the problem you are having is due to the revDataFromQuery function, rather than the Data Grid. By default the revDataFromQuery function will return one record per line if i remember correctly. Because your records span multiple lines, it will be hard to loop through each one. I would do ...
by oliverk
Wed Dec 23, 2009 2:54 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: select text in a field by line number
Replies: 2
Views: 2376

Re: select text in a field by line number

Hi Ken,

If you just want to delete the text, you can just do something like:

Code: Select all

delete line 1 to 25 of field "MyField"
But maybe you are trying to do something more complicated?

Regards
Oliver
by oliverk
Wed Dec 16, 2009 4:10 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to ZIP files?
Replies: 26
Views: 11653

Re: How to ZIP files?

Hi, Something that i've found helpful when using the Zip Library is to always check the result after every revZip call. The Zip library functions and commands don't throw errors unless you call them completely wrongly (e.g. wrong number of parameters), instead they place error information in "the re...
by oliverk
Wed Dec 16, 2009 11:51 am
Forum: Talking LiveCode
Topic: Deliver snapshot png graphic to a server
Replies: 1
Views: 2108

Re: Deliver snapshot png graphic to a server

Hi Ron, You could use the put into url "ftp://..." method as described in the "PDF File Upload" thread. Using this method the username and password are coded into the actual url. I would suggest if you are using this approach, create an ftp account on your host specifically for this purpose, and mak...
by oliverk
Tue Dec 15, 2009 2:50 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: revBrowser - Scaling
Replies: 5
Views: 3476

Re: revBrowser - Scaling

Hi Andrew, Off the top of my head I can't think of another way of doing this apart from using revBrowserSnapshot. There may be command-line utilities or something that can help you depending on which platforms you need to support. Another thing that may be worth thinking about is just creating a fix...
by oliverk
Fri Dec 11, 2009 5:46 pm
Forum: Databases
Topic: Sqlite problems
Replies: 14
Views: 9138

Re: Sqlite problems

Hi, Unfortunately I didn't spot this message until after the solution was found. For what its worth, the reason for this problem is how Externals (like revDB) are loaded in Revolution standalone applications. Revolution places a hidden group in your stack, which initializes the externals when it rec...

Go to advanced search