Locating texts.

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
tasdvl9
Posts: 94
Joined: Fri Dec 06, 2013 3:55 am

Locating texts.

Post by tasdvl9 » Sun Dec 08, 2013 8:39 pm

Hi,

I'm taking over a project from a fellow developer.
When I invoke Livecode I noticed some of the controls in my stack are pre-filled.

Is there a way of locating where these predetermined values are being stored?
Is there a way to open up a .rev or .dat file in Livecode?

Thanks!
I'm getting my feet wet and still fuzzy on a lot of the Livecode features.

chris25
Posts: 354
Joined: Tue Oct 08, 2013 9:32 pm

Re: Locating texts.

Post by chris25 » Sun Dec 08, 2013 8:55 pm

I am a beginner :( so I am probably out of line on this one, but I really could not help but wonder two things when I read your post:
1. what exactly is pre-filled?
2. Do you not have access to the code? Is the stack you have a 'stand alone' ?
I'll just wait and see what you reply
kind regards
chris.

vedus
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 153
Joined: Tue Feb 26, 2013 9:23 am

Re: Locating texts.

Post by vedus » Sun Dec 08, 2013 9:06 pm

tasdvl9 wrote:Hi,

I'm taking over a project from a fellow developer.
When I invoke Livecode I noticed some of the controls in my stack are pre-filled.

Is there a way of locating where these predetermined values are being stored?
Is there a way to open up a .rev or .dat file in Livecode?

Thanks!
I'm getting my feet wet and still fuzzy on a lot of the Livecode features.
can you be a little more specific what you mean about pre-filled?
do you mean buttons,images,can you show something ?

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10333
Joined: Wed May 06, 2009 2:28 pm

Re: Locating texts.

Post by dunbarx » Sun Dec 08, 2013 10:33 pm

Hi.

The others have pointed out exactly the proper questions.

If you open the "Find and Replace..." tool in the "Edit" menu, you will be able to set up a search. Select "This stack file and its stack files" and search for instances of "set" and "put". The "script" option is already selected.

This should give you a list of all handlers that may have set properties of controls, perhaps in "openStack" handlers and the like. It will not show you any properties set by hand, say from the message box. But it is a start.

Craig Newman

tasdvl9
Posts: 94
Joined: Fri Dec 06, 2013 3:55 am

Re: Locating texts.

Post by tasdvl9 » Mon Dec 09, 2013 4:33 am

Hi Craig,

Thanks! The variables are definitely being set in openstack.

put field "fldUser" of card "cdVersion" of stack "Defaults" into gUser

My confusion stems from the fact I do not how this variable is initially set.

Since this is code being passed on from a previous developer I am going through it
line by line to get a better understanding.

For instance, the variable fldUser is being set to 'John Smith' when I bring up the stack but
I'm not sure where 'John Smith' is stored so that it fills the control box.

Any ideas? Perhaps it is in a .dat file. Typically how would this be done?

I appreciate all of the help.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Locating texts.

Post by Simon » Mon Dec 09, 2013 4:49 am

Hi tasdvl9,
In the Find and Replace you can select Field Text. Then search on John Smith.
Make sure you have "This stack file and it's stack files" selected as well from the dropdown.
Do this all from the Edit in the top menu bar not the script editor.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

tasdvl9
Posts: 94
Joined: Fri Dec 06, 2013 3:55 am

Re: Locating texts.

Post by tasdvl9 » Mon Dec 09, 2013 4:58 am

Thanks, Simon!

That worked out well.

I appreciate the prompt response.

Post Reply