Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Subtext - meaning within text


  • Please log in to reply
6 replies to this topic

#1 teatrap

teatrap

  • Members
  • 121 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:03:36 AM

Posted 25 November 2013 - 10:13 AM

I've googled and found lot's of link's to a language called SubText, but I don't think my question relates to that. 

 

Basically, I created an Email Validator following a tut in small basic - part of it is a command called IsSubText which is then assigned to the variables " . " and " @ ". My understanding is that this is looking through the text entered by the user for " . " and " @ " 

 

So is subtext in this context anything that lies within the text entered by the user? It's just text within the entered text... 

 

That makes sense, I just kind of wanted to make sure! 

 

 


Operating system_Windows 8.1 Pro with Media Center (9600)
CPU_Intel® Core™ i7-4700MQ CPU @ 2.40GHz
Motherboard_Hewlett-Packard (1966)
RAM_12063mb
Hard Drive_931gb (HGST HTS541010A9E680)
Graphics card_Intel® HD Graphics 4600
Sound card_IDT High Definition Audio CODEC


BC AdBot (Login to Remove)

 


#2 SpywareDoc

SpywareDoc

  • Members
  • 676 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Maryland, USA
  • Local time:10:36 PM

Posted 25 November 2013 - 10:36 AM

https://www.google.com/#q=define:subtext



#3 teatrap

teatrap
  • Topic Starter

  • Members
  • 121 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:03:36 AM

Posted 25 November 2013 - 11:10 AM

Good one. Was hoping for clarification from someone who was experienced, the link you provided doesn't come close


Operating system_Windows 8.1 Pro with Media Center (9600)
CPU_Intel® Core™ i7-4700MQ CPU @ 2.40GHz
Motherboard_Hewlett-Packard (1966)
RAM_12063mb
Hard Drive_931gb (HGST HTS541010A9E680)
Graphics card_Intel® HD Graphics 4600
Sound card_IDT High Definition Audio CODEC


#4 SpywareDoc

SpywareDoc

  • Members
  • 676 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Maryland, USA
  • Local time:10:36 PM

Posted 25 November 2013 - 11:19 AM

When I hear the word "subtext", your definition of "anything that lies within the text entered by the user" does not make sense. The reason is because "subtext" means:

Subtext or undertone is content of a book, play, musical work, film, video game, or television series which is not announced explicitly by the characters ...

1) The implicit meaning or theme of a literary text. 2) The underlying personality of a dramatic character as implied or indicated by a script or text ...



#5 teatrap

teatrap
  • Topic Starter

  • Members
  • 121 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:03:36 AM

Posted 25 November 2013 - 11:28 AM

When I hear the word "subtext", your definition of "anything that lies within the text entered by the user" does not make sense.


Makes more sense to lead with that...

I'll give a bit more context to the example:

The user is required to enter in an email address, and the program will determine whether or not this is a valid email address.

here's the code:
 
TextWindow.Write("Enter a valid email address: ")
EmailID = TextWindow.Read()
m = Text.IsSubText(EmailID, ".")
n = Text.IsSubText(EmailID, "@")
If m = "True" And n = "True" Then
  TextWindow.WriteLine("Valid")
Else
  TextWindow.WriteLine("Not Valid")
EndIf
  
So I was just wondering about the SubText thing - in this kind of situation does it just refer to the text entered by the user?

It seems so - if i subsituate the "@" and "." for anything else (eg t and B ) and just enter "eorgtbaowirenf" it still comes back as valid

I didn't want to move on without understanding that was all, sos if its a bit basic

Edited by teatrap, 25 November 2013 - 11:28 AM.

Operating system_Windows 8.1 Pro with Media Center (9600)
CPU_Intel® Core™ i7-4700MQ CPU @ 2.40GHz
Motherboard_Hewlett-Packard (1966)
RAM_12063mb
Hard Drive_931gb (HGST HTS541010A9E680)
Graphics card_Intel® HD Graphics 4600
Sound card_IDT High Definition Audio CODEC


#6 SpywareDoc

SpywareDoc

  • Members
  • 676 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Maryland, USA
  • Local time:10:36 PM

Posted 25 November 2013 - 11:41 AM

http://smallbasic.com/program/?LLJ836

 

?



#7 teatrap

teatrap
  • Topic Starter

  • Members
  • 121 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:03:36 AM

Posted 25 November 2013 - 11:43 AM

OK thanks I'll have a look through.

Operating system_Windows 8.1 Pro with Media Center (9600)
CPU_Intel® Core™ i7-4700MQ CPU @ 2.40GHz
Motherboard_Hewlett-Packard (1966)
RAM_12063mb
Hard Drive_931gb (HGST HTS541010A9E680)
Graphics card_Intel® HD Graphics 4600
Sound card_IDT High Definition Audio CODEC





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users