New topic: 

Expected String but got String????

<http://forums.realsoftware.com/viewtopic.php?t=36320>

         Page 1 of 1
   [ 4 posts ]                 Previous topic | Next topic          Author  
Message        Specialised          Post subject: Expected String but got 
String????Posted: Sat Nov 13, 2010 10:58 pm                         
Joined: Thu Aug 26, 2010 6:57 am
Posts: 35
Location: Sydney Australia                I am creating an encrypted text file 
that is obviously decrypted, value read and then assigned to properties within 
my app. I obtain a "parameter" name and "value" and then do a select case to 
assign the right value to the right property.

All well and good until I started adding in more variables as the app grew. I 
would modify the file, encrypt it then debug my app reading in values. I get to 
one of the case selections that read something like myProperty = value but it 
bugs out with the warning "expected string but got string"

Anyone else ever have this issue? I cannot reproduce it unless I use my app???

eg

Load a file into memory block
Iterate line by line
  Get param
  Get value
  Select Case
  Case "someValue"
  myProperty = value //bugs out with "expected string but got string"
  // There are many more selections here that all work fine
  End Select
Loop until some end point      
_________________
Regards

Chris Musty
Specialised Technologies Pty Ltd

Software | Electronics | IT | Multimedia
http://www.specialised.net.au
  
                             Top                 Specialised          Post 
subject: Re: Expected String but got String????Posted: Sat Nov 13, 2010 11:01 
pm                         
Joined: Thu Aug 26, 2010 6:57 am
Posts: 35
Location: Sydney Australia                Never mind...

Shut down RS and restart > no dice
Shut down PC and restart > fixed it! (Microsoft %...@%$!)      
_________________
Regards

Chris Musty
Specialised Technologies Pty Ltd

Software | Electronics | IT | Multimedia
http://www.specialised.net.au
  
                             Top                 timhare          Post subject: 
Re: Expected String but got String????Posted: Sat Nov 13, 2010 11:06 pm         
                
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 8686
Location: Portland, OR  USA                Can you copy/paste the exact section 
of code?  Start on line ahead of the case statement and go to the next case 
statement.  Or delete that section and retype it.  Maybe you've got an illegal 
charater embedded in your code, or maybe you're using an illegal variable name.

Edit: nvm   
                             Top                Specialised          Post 
subject: Re: Expected String but got String????Posted: Sat Nov 13, 2010 11:38 
pm                         
Joined: Thu Aug 26, 2010 6:57 am
Posts: 35
Location: Sydney Australia                I tried removing and adding extra 
cases but it would always bomb out somewhere (seemingly random but only tried 3 
times), I saved my work and rebooted - all good. I have no idea why but it just 
worked. No issue since then.      
_________________
Regards

Chris Musty
Specialised Technologies Pty Ltd

Software | Electronics | IT | Multimedia
http://www.specialised.net.au
  
                             Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 4 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to