Hi,
I realy don't know how to do this! Can you tell me if this is possible or not?
In MSFlexGrid MouseMove(), how to focus (highlight) the cell in the related row but in a particular column?
I hope this is easy for you and show me the code!
Thanks a lot for your help.
Hello,
I need to put Line2 control over Line1 control but I found the color of Line2 control was changed, perhaps depending on the color of Line1 control!
How can I remain the colour of Line2 control?
I will be very appreciated with your help!
Thank you!
It means the field name in the table has priority over the local variable!
Can you also tell me how to assign a table to be current table and how to know which table is the current table?
In Command3.Click
local userName
userName="abc"
?userName
Why it did not print out "abc"?
It printed something in database table1 because "username" is its field name?
My question would be how to tell VFP a variable is the field name in database table or is a variable I declared in "local"?
Thank you so much, I got a lot things I did not know....
I have just tried:
for i=1 to len(thisform.text1.text)
?asc(substr(thisform.text1.text,i))
endfor
and got a lot of "32" - the spaces at the end of the text in text1.
To OlafDoschke,
Thank you.
I hope "Width is the visual width in pixels and has nothing to do with the value length at all".
However, in my test code the length of "12345" looks related with the width of the textbox:
if the widths of both textboxes are the same, the lengths (and the values) of...
To jrbbldr,
Thank you.
After I type the string into text1, immediately, I click Command1. The code in Command1 is
?len(thisform.text1.text)
My proplem came from code
use table1
locate for username=thisform.text1.value
if found()
......
Although I typed correct username into text1, the code...
To jrbbldr,
Thank you for your suggestion.
I have just tested:
?thisform.text1.width
?thisform.text2.width
?len(thisform.text1.text)
?len(thisform.text2.text)
?thisform.text1.text=thisform.text2.text
and got the same result!
Can we assume that .text1.text (and .text2.text) must be jointed...
To MikeLewis,
Sorry, I didn't explain what I want to do in my above program!
No, I didn't try to compare .text1.width with len(.text1.value)!
I tried to compare len(.text1.value) with len(.text2.value) and to compare .text1.value with .text2.value
Although I typed the same string "12345" into...
Thanks a lot for two responses above.
I have just made a test code for Command1:
?thisform.text1.width
?thisform.text2.width
?len(thisform.text1.value)
?len(thisform.text2.value)
?thisform.text1.value=thisform.text2.value
Run the program and typed 12345 into Text1 and Text2 very carefully...
Thank you.
I did not input any space, why I need to trim away spaces?
I also tried to make the box longer (without change the string), I got a bigger return value!
Hi,
In VFP, I found
?len(thisform.text1.value)
returned something related to the length of the text1 box, not the length of the string in the box.
Anything I was missing??
Sure, I hope I can clearly explain what I am trying to do:
In several rows of a table, I have strings and imgs in <td>s.
The img <td>s are for click and in the img <td>:
1. there is link and img but no string,
2. because the img is transparent gif, you can see different color of the <td> when...
Hi,
Following code is working fine but one thing I don't understand:
in the cell, there is an extra space under a .gif.
Is this by design?
If I remove <!DOCTYPE html>, the space will disappear, but can I remain <!DOCTYPE html> and remove the space?
<!DOCTYPE html>
<html>
<head>
<style>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.